summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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