summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius Peter <blendoit@gmail.com>2019-06-20 18:13:19 -0700
committerMarius Peter <blendoit@gmail.com>2019-06-20 18:13:19 -0700
commit234251fa0370491e105fcd18c4c05556579562da (patch)
treefe49ce512f583c265442db77bde6f7e81fd3f113
parent4ee52cf24db8148c54f02022517a06b662509f92 (diff)
squarify plot window
-rw-r--r--creator.py6
1 files 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
Copyright 2019--2024 Marius PETER