diff --git a/aerosandbox/library/power_turboshaft.py b/aerosandbox/library/power_turboshaft.py index 9f00f313..dd20694c 100644 --- a/aerosandbox/library/power_turboshaft.py +++ b/aerosandbox/library/power_turboshaft.py @@ -143,7 +143,7 @@ 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) @@ -151,7 +151,7 @@ def thermal_efficiency_turboshaft( 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 ##### @@ -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)