Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enh/fix_legends #329

Merged
merged 1 commit into from
Jan 30, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions rocketpy/AeroSurfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -984,7 +984,7 @@ def draw(self):
)

# Plotting
fig3 = plt.figure(figsize=(4, 4))
fig3 = plt.figure(figsize=(7, 4))
with plt.style.context("bmh"):
ax1 = fig3.add_subplot(111)

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

plt.tight_layout()
plt.show()

return None
Expand Down Expand Up @@ -1309,7 +1310,7 @@ def draw(self):
cp_point = [self.cpz, self.Yma]

# Plotting
fig3 = plt.figure(figsize=(4, 4))
fig3 = plt.figure(figsize=(7, 4))
with plt.style.context("bmh"):
ax1 = fig3.add_subplot(111)
ax1.add_patch(el)
Expand All @@ -1328,6 +1329,7 @@ def draw(self):
ax1.set_title("Elliptical Fin")
ax1.legend(bbox_to_anchor=(1.05, 1.0), loc="upper left")

plt.tight_layout()
plt.show()

return None
Expand Down