*ARCHIVED* development moved to aircraft-studio.
proportional graph plotting
Changed files
creator.py
@@ -372,8 +372,8 @@
372
372
airfoil.y_c,
373
373
'-.',
374
374
color='r',
375
Removed:
linewidth='2',
376
Removed:
label='mean camber line')
375
Added:
linewidth='2')
376
Added:
# label='mean camber line')
377
377
# Plot upper surface
378
378
plt.plot(airfoil.x_u, airfoil.y_u, '', color='b', linewidth='1')
379
379
# Plot lower surface
@@ -405,10 +405,9 @@
405
405
print('Unable to plot stringers. Were they created?')
406
406
407
407
# Graph formatting
408
Removed:
plt.gcf().set_size_inches(9, 2.2)
408
Added:
plt.gca().set_aspect('equal', adjustable='box')
409
409
plt.xlabel('X axis')
410
410
plt.ylabel('Y axis')
411
Removed:
# plt.gcf().set_size_inches(self.chord, max(self.y_u) - min(self.y_l))
412
411
plt.grid(axis='both', linestyle=':', linewidth=1)
413
412
plt.show()
414
413
return None
main.py
@@ -21,7 +21,7 @@
21
21
import time
22
22
start_time = time.time()
23
23
24
Removed:
CHORD_LENGTH = 140
24
Added:
CHORD_LENGTH = 1000
25
25
SEMI_SPAN = 200
26
26
27
27
POP_SIZE = 1