In [1]:
%pylab inline
In [2]:
from pytransit.contamination import BBContamination, SMContamination, Instrument, sdss_griz
In [3]:
cnb = BBContamination(Instrument('example', sdss_griz), ref_pb="r'")
cnp = SMContamination(Instrument('example', sdss_griz), ref_pb="r'")
In [4]:
fig = cnb.plot(3500, 5800, 0.25, nwl=1000, figsize=(13,8));
fig = cnp.plot(3500, 5800, 0.25, nwl=1000, figsize=(13,8), axs=fig.axes);
In [5]:
fig, axs = subplots(2, 2, figsize=(13,6), constrained_layout=True)
cnb.plot(3400, 6200, 0.25, wlref=630, axs=axs[:,0])
cnp.plot(3400, 6200, 0.25, wlref=630, axs=axs[:,0])
cnb.plot(6200, 3400, 0.25, wlref=630, axs=axs[:,1])
cnp.plot(6200, 3400, 0.25, wlref=630, axs=axs[:,1])