Skip to content

Commit

Permalink
Merge f5aac40 into 9497250
Browse files Browse the repository at this point in the history
  • Loading branch information
aribalam authored Mar 13, 2021
2 parents 9497250 + f5aac40 commit ec81d7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tardis/montecarlo/spectrum.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,13 @@ def luminosity_to_flux(luminosity, distance):
def f_nu_to_f_lambda(self, f_nu):
return f_nu * self.frequency / self.wavelength

def plot(self, ax=None, mode="wavelength"):
def plot(self, ax=None, mode="wavelength", **kwargs):
if ax is None:
from matplotlib.pyplot import gca

ax = gca()
if mode == "wavelength":
ax.plot(self.wavelength.value, self.luminosity_density_lambda.value)
ax.plot(self.wavelength.value, self.luminosity_density_lambda.value, **kwargs)
ax.set_xlabel(
"Wavelength [{}]".format(self.wavelength.unit._repr_latex_())
)
Expand Down

0 comments on commit ec81d7c

Please sign in to comment.