Skip to content

Commit

Permalink
Fixed italicised Units in sdec_plot (#1446)
Browse files Browse the repository at this point in the history
* Fixed italicised Units in sdec_plot

* Fixed Italics Luminosity & Flux Lambda representation

* Reverted back to old notation
  • Loading branch information
DhruvSondhi authored Feb 12, 2021
1 parent b9ab7c8 commit b2b6a6f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tardis/widgets/sdec_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -873,13 +873,17 @@ def generate_plot_mpl(

# Set legends and labels
self.ax.legend(fontsize=12)
self.ax.set_xlabel(r"Wavelength $[\AA]$", fontsize=12)
self.ax.set_xlabel(r"Wavelength $[\mathrm{\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 b2b6a6f

Please sign in to comment.