Skip to content

Commit

Permalink
add a few plot fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdsharpe committed Jan 29, 2024
1 parent 6d24d7d commit cf6c28f
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,13 @@
p.contour(
Beta, Alpha, aero["L"], colorbar_label="Lift $L$ [N]",
# levels=100,
linelabels_format=lambda s: eng_string(s, unit="N"),
linelabels_format=lambda s: f"{s:.2g} N",
cmap=p.mpl.colormaps.get_cmap("coolwarm")
)
p.equal()
p.show_plot("3D Fuselage Lift", r"$\beta$ [deg]", r"$\alpha$ [deg]")
plt.xlabel(r"$\beta$ [deg]")
plt.ylabel(r"$\alpha$ [deg]")
p.show_plot(
"3D Fuselage Lift",
rotate_axis_labels=False
)

0 comments on commit cf6c28f

Please sign in to comment.