Uliana has pointed out to me that MM fails sometimes in plotting datasets. We checked that these datasets are of poor quality (only 2 epochs, or only noisy data near baseline) and they have negative source flux. Hence, while scaling the errorbars, they take negative values, which then makes pyplot to fail. We definitely should correct that. We can do:
just skip such a dataset while plotting,
plot this dataset but without errorbars.
In both cases we should give a warning. I think the latter approach will be misleading: if we plot 5 datasets with errorbars and one doesn't see them in one case, then they may think that the uncertainties are very small.
@jenniferyee What do you think?
Uliana has pointed out to me that MM fails sometimes in plotting datasets. We checked that these datasets are of poor quality (only 2 epochs, or only noisy data near baseline) and they have negative source flux. Hence, while scaling the errorbars, they take negative values, which then makes pyplot to fail. We definitely should correct that. We can do:
In both cases we should give a warning. I think the latter approach will be misleading: if we plot 5 datasets with errorbars and one doesn't see them in one case, then they may think that the uncertainties are very small. @jenniferyee What do you think?