Commit ba9ef68b authored by Médéric Boquien's avatar Médéric Boquien

Also include upper limits (when relevant) for the computation of the minimum value on the y axis.

parent fbed3baa
Pipeline #1902 skipped with stage
......@@ -299,6 +299,11 @@ def _sed_worker(obs, mod, filters, sed_type, logo, xrange, yrange, series,
if yrange[0] is not False:
ymin = yrange[0]
else:
if not mask_uplim.any() == False:
ymin = min(min(np.min(obs_fluxes[mask_ok]),
np.min(obs_fluxes[mask_uplim])),
min(np.min(mod_fluxes[mask_ok]),
np.min(mod_fluxes[mask_uplim])))
ymin = min(np.min(obs_fluxes[mask_ok]),
np.min(mod_fluxes[mask_ok]))
ymin *= 1e-1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment