Skip to content

Commit 2cefce3

Browse files
GernotMaierCopilot
andauthored
Update v2dl5/plot.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 2476a25 commit 2cefce3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

v2dl5/plot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def plot_sed(self, flux_point_dataset, y_min=None, y_max=None):
148148
kwargs_model = {"color": "grey", "ls": "--", "sed_type": "dnde"}
149149
kwargs_fp = {"color": "black", "marker": "o", "sed_type": "dnde"}
150150
ax = flux_point_dataset.plot_spectrum(kwargs_fp=kwargs_fp, kwargs_model=kwargs_model)
151-
if y_min and y_max:
151+
if y_min is not None and y_max is not None:
152152
ax.set_ylim(y_min, y_max)
153153
self._plot(plot_name="spectrum", output_dir=self.output_dir)
154154
try:

0 commit comments

Comments
 (0)