diff options
-rw-r--r-- | creator.py | 7 | ||||
-rw-r--r-- | main.py | 2 |
2 files changed, 4 insertions, 5 deletions
@@ -372,8 +372,8 @@ def plot(airfoil, spar, stringer): airfoil.y_c,
'-.',
color='r',
- linewidth='2',
- label='mean camber line')
+ linewidth='2')
+ # label='mean camber line')
# Plot upper surface
plt.plot(airfoil.x_u, airfoil.y_u, '', color='b', linewidth='1')
# Plot lower surface
@@ -405,10 +405,9 @@ def plot(airfoil, spar, stringer): print('Unable to plot stringers. Were they created?')
# Graph formatting
- plt.gcf().set_size_inches(9, 2.2)
+ plt.gca().set_aspect('equal', adjustable='box')
plt.xlabel('X axis')
plt.ylabel('Y axis')
- # plt.gcf().set_size_inches(self.chord, max(self.y_u) - min(self.y_l))
plt.grid(axis='both', linestyle=':', linewidth=1)
plt.show()
return None
@@ -21,7 +21,7 @@ import random import time start_time = time.time() -CHORD_LENGTH = 140 +CHORD_LENGTH = 1000 SEMI_SPAN = 200 POP_SIZE = 1 |