Skip to content

Commit

Permalink
Merge pull request #139 from kavanase/master
Browse files Browse the repository at this point in the history
Fix xmax typo in optics_plotter
  • Loading branch information
utf committed Jun 11, 2021
2 parents c331ba6 + 61c1c7c commit 2fa4f38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sumo/plotting/optics_plotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def get_plot(
ax = fig.axes[i]
_plot_spectrum(data, self._label, self._band_gap, ax, optics_colours, units)

if units in ["ev", "eV"] and xmax is not None:
if units in ["ev", "eV"] and xmax is None:
xmax = self._xmax # use sumo-determined energy limits
elif units == "nm":
# use default minimum energy (max wavelength) of 2500 nm
Expand Down

0 comments on commit 2fa4f38

Please sign in to comment.