jvines / astroARIADNE

Easy stellar SED fitting!
MIT License
57 stars 7 forks source link

A problem of plot_SED_no_model function #28

Closed zhang-zhixiang closed 2 years ago

zhang-zhixiang commented 2 years ago

I found the errorbar bar of SED_no_model is too small in red wavelength. I think maybe you forgot to multiply the errors with wavelength?

        for c, w, fl, fe, bp, fi in zip(
                colors[self.star.filter_mask],
                self.wave, self.flux, self.flux_er,
                self.bandpass, used_f):
            ax.errorbar(w, fl * w,
                        xerr=bp, yerr=fe,
                        fmt='',
                        ecolor=c,
                        marker=None)
jvines commented 2 years ago

Thanks for catching this! It has been fixed now :)