Skip to content

Commit

Permalink
Fix black reformatting
Browse files Browse the repository at this point in the history
  • Loading branch information
DhruvSondhi committed Feb 2, 2021
1 parent afbb296 commit e84b0f1
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 $\mathrm{s^{-1}}$ $\mathrm{cm^{-2}}$ $\mathrm{\AA^{-1}}$]", 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 $\mathrm{s^{-1}}$ $\mathrm{\AA^{-1}}$]", 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 e84b0f1

Please sign in to comment.