Skip to content

Commit

Permalink
update illustrations
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdsharpe committed Dec 5, 2023
1 parent 7dd3fc0 commit 93395b6
Show file tree
Hide file tree
Showing 4 changed files with 2,013 additions and 2,764 deletions.
Binary file modified media/kulfan_parameterization_illustration.pdf
Binary file not shown.
Binary file modified media/kulfan_parameterization_illustration.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 13 additions & 10 deletions media/kulfan_parameterization_illustration.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import matplotlib.pyplot as plt
import aerosandbox.tools.pretty_plots as p

fig, ax = plt.subplots(2, 1, figsize=(5.3,5))
fig, ax = plt.subplots(2, 1, figsize=(5.5,5))

# cmap = plt.get_cmap('turbo')

Expand Down Expand Up @@ -84,18 +84,21 @@
for a in ax:
plt.sca(a)
plt.xlim(-0.05, 1.05)
plt.ylim(-0.18, 0.26)
# plt.ylim(-0.18, 0.26)
p.equal()

ax[0].set_title("Top- and Bottom-Surface Modes (16)")
ax[1].set_title("Leading-Edge-Modification (LEM) and Trailing Edge (TE) Modes")

p.show_plot(
"NeuralFoil Airfoil Shape Parameterization\n(18 parameters)",
show=False
)
plt.savefig("kulfan_parameterization_illustration.png", dpi=600)
plt.savefig("kulfan_parameterization_illustration.pdf")
plt.savefig("kulfan_parameterization_illustration.svg")
plt.show()
# plt.axis('off')
ax[0].axis('off')
ax[1].axis('off')

p.show_plot(
"NeuralFoil Airfoil Shape Parameterization (18 parameters)",
savefig=[
"kulfan_parameterization_illustration.png",
"kulfan_parameterization_illustration.pdf",
"kulfan_parameterization_illustration.svg",
],
)
Loading

0 comments on commit 93395b6

Please sign in to comment.