From 234251fa0370491e105fcd18c4c05556579562da Mon Sep 17 00:00:00 2001 From: Marius Peter Date: Thu, 20 Jun 2019 18:13:19 -0700 Subject: squarify plot window --- creator.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/creator.py b/creator.py index 1f02e71..c30480e 100644 --- a/creator.py +++ b/creator.py @@ -391,13 +391,13 @@ def plot(airfoil, spar, stringer): plt.plot(x, y, '.', color='y') # Graph formatting - plt.gca().set_aspect('equal', adjustable='box') plt.xlabel('X axis') plt.ylabel('Z axis') plot_bound = airfoil.x_u[-1] - plt.xlim(- 5, plot_bound + 5) - plt.ylim(- plot_bound / 2, plot_bound / 2) + plt.xlim(- 0.10 * plot_bound, 1.10 * plot_bound) + plt.ylim(- (1.10 * plot_bound / 2), (1.10 * plot_bound / 2)) + plt.gca().set_aspect('equal', adjustable='box') plt.grid(axis='both', linestyle=':', linewidth=1) plt.show() return None -- cgit v1.2.3