Skip to content

Commit

Permalink
simplify syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdsharpe committed Aug 2, 2023
1 parent b24b78e commit 2e808d3
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions benchmarking/neuralfoil_point_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
fig, ax = plt.subplots(figsize=(8,5))
plt.xscale('log')

# cmap = plt.get_cmap("rainbow")
cmap = LinearSegmentedColormap.from_list(
"custom_cmap",
colors=[
Expand Down Expand Up @@ -130,16 +129,9 @@
plt.ylim(bottom=-0.8)

afax = ax.inset_axes([0.76, 0.802, 0.23, 0.23])
afax.plot(
af.x(),
af.y(),
"k", alpha=0.7,
linewidth=1
)
afax.fill(
af.x(),
af.y(),
"k", alpha=0.2
af.x(), af.y(),
facecolor=(0, 0, 0, 0.2), linewidth=1, edgecolor=(0, 0, 0, 0.7)
)
afax.annotate(
text=f"{af.name} Airfoil",
Expand Down

0 comments on commit 2e808d3

Please sign in to comment.