Skip to content

Commit

Permalink
Fixed italicised Units in sdec_plot
Browse files Browse the repository at this point in the history
  • Loading branch information
DhruvSondhi committed Feb 2, 2021
1 parent 7f31e2b commit e61075c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tardis/widgets/sdec_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -876,10 +876,14 @@ def generate_plot_mpl(
self.ax.set_xlabel(r"Wavelength $[\AA]$", fontsize=12)
if distance: # Set y-axis label for flux
self.ax.set_ylabel(
r"$F_{\lambda}$ [erg/s/cm^{2}/$\AA$]", fontsize=12
r"$F_{\lambda}$ [erg $\mathrm{s^{-1}}$ $\mathrm{cm^{-2}}$ $\mathrm{\AA^{-1}}$]",
fontsize=12,
)
else: # Set y-axis label for luminosity
self.ax.set_ylabel(r"$L_{\lambda}$ [erg/s/$\AA$]", fontsize=12)
self.ax.set_ylabel(
r"$L_{\lambda}$ [erg $\mathrm{s^{-1}}$ $\mathrm{\AA^{-1}}$]",
fontsize=12,
)

return plt.gca()

Expand Down

0 comments on commit e61075c

Please sign in to comment.