diff options
author | Marius Peter <blendoit@gmail.com> | 2019-06-20 18:13:19 -0700 |
---|---|---|
committer | Marius Peter <blendoit@gmail.com> | 2019-06-20 18:13:19 -0700 |
commit | 234251fa0370491e105fcd18c4c05556579562da (patch) | |
tree | fe49ce512f583c265442db77bde6f7e81fd3f113 | |
parent | 4ee52cf24db8148c54f02022517a06b662509f92 (diff) |
squarify plot window
-rw-r--r-- | creator.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |