Skip to content

Commit

Permalink
fix import (p.mpl.ticker)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdsharpe committed Mar 7, 2024
1 parent 2b6660f commit d6e024c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions aerosandbox/library/power_turboshaft.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,15 +143,15 @@ def thermal_efficiency_turboshaft(
x,
thermal_efficiency_turboshaft(1000, throttle_setting=x) / thermal_efficiency_turboshaft(1000),
)
ax.xaxis.set_major_formatter(p.ticker.PercentFormatter(1))
ax.xaxis.set_major_formatter(p.mpl.ticker.PercentFormatter(1))
plt.xlim(0, 1)
plt.ylim(0, 1)
p.set_ticks(0.1, 0.05, 0.1, 0.05)

p.show_plot(
"Turboshaft: Thermal Efficiency at Partial Power",
"Throttle Setting [-]",
"Thermal Efficiency Knockdown\nrelative to Design Point [-]\n$\eta / \eta_\mathrm{max}$"
"Thermal Efficiency Knockdown relative to Design Point [-] $\eta / \eta_\mathrm{max}$"
)

##### Do Weight/OPR Efficiency Plot #####
Expand All @@ -175,7 +175,7 @@ def thermal_efficiency_turboshaft(
cmap="turbo_r",
)

cbar.ax.yaxis.set_major_formatter(p.ticker.PercentFormatter(1, decimals=0))
cbar.ax.yaxis.set_major_formatter(p.mpl.ticker.PercentFormatter(1, decimals=0))

p.set_ticks(None, None, 5, 1)

Expand Down

0 comments on commit d6e024c

Please sign in to comment.