%pylab inline
Populating the interactive namespace from numpy and matplotlib
from pytransit.contamination import BBContamination, SMContamination, Instrument, sdss_griz
cnb = BBContamination(Instrument('example', sdss_griz), ref_pb="r'")
cnp = SMContamination(Instrument('example', sdss_griz), ref_pb="r'")
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);
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])