Skip to content

Commit db066ad

Browse files
authored
Merge pull request #329 from RocketPy-Team/enh/fix_legends
enh/fix_legends
2 parents d572bcc + b488ac5 commit db066ad

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

rocketpy/AeroSurfaces.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -984,7 +984,7 @@ def draw(self):
984984
)
985985

986986
# Plotting
987-
fig3 = plt.figure(figsize=(4, 4))
987+
fig3 = plt.figure(figsize=(7, 4))
988988
with plt.style.context("bmh"):
989989
ax1 = fig3.add_subplot(111)
990990

@@ -1015,6 +1015,7 @@ def draw(self):
10151015
ax1.set_title("Trapezoidal Fin")
10161016
ax1.legend(bbox_to_anchor=(1.05, 1.0), loc="upper left")
10171017

1018+
plt.tight_layout()
10181019
plt.show()
10191020

10201021
return None
@@ -1309,7 +1310,7 @@ def draw(self):
13091310
cp_point = [self.cpz, self.Yma]
13101311

13111312
# Plotting
1312-
fig3 = plt.figure(figsize=(4, 4))
1313+
fig3 = plt.figure(figsize=(7, 4))
13131314
with plt.style.context("bmh"):
13141315
ax1 = fig3.add_subplot(111)
13151316
ax1.add_patch(el)
@@ -1328,6 +1329,7 @@ def draw(self):
13281329
ax1.set_title("Elliptical Fin")
13291330
ax1.legend(bbox_to_anchor=(1.05, 1.0), loc="upper left")
13301331

1332+
plt.tight_layout()
13311333
plt.show()
13321334

13331335
return None

0 commit comments

Comments
 (0)