CONAN._classes.load_lightcurves.plot#
- CONAN._classes.load_lightcurves.plot(plot_cols=(0, 1, 2), col_labels=None, nrow_ncols=None, figsize=None, fit_order=0, show_decorr_model=False, detrend=False, phase_plot=0, hspace=None, wspace=None, binsize=None, return_fig=False)#
visualize data
- Parameters:
plot_cols (tuple of length 2 or 3;) – Tuple specifying which columns in input file to plot. Default is (0,1,2) to plot column 0 against 1, and 2 as errorbar (i.e. time against flux with fluxerr). Use (3,1,2) to show the correlation between column 3 and the flux. Using tuple of length 2 does not plot errorbars. e.g (3,1). if decorrelation has been done with lmfit, the “res” can also be given to plot a column against the residual of the fit.
col_labels (tuple of length 2;) – label of the given columns in plot_cols. Default is (“time”, “flux”).
nrow_ncols (tuple of length 2;) – Number of rows and columns to plot the input files. Default is None to find the best layout.
fit_order (int;) – order of polynomial to fit to the plotted data columns to visualize correlation.
show_decorr_model (bool;) – show decorrelation model if decorrelation has been done.
detrend (bool;) – plot the detrended data. Default is False.
phase_plot (int;) – plot data in phase. only when decorrelation has been performed and show_decorr_model=True. Default is 0 to not phase fold, 1 to phase on period of planet 1, etc.
hspace (float;) – height and width space between subplots. Default is None to use matplotlib defaults.
wspace (float;) – height and width space between subplots. Default is None to use matplotlib defaults.
binsize (float;) – binsize (in days) to use for binning the data in time. Default is None, 10 points are created in transit.
figsize (tuple of length 2;) – Figure size. If None, (8,5) is used for a single input file and optimally determined for more inputs.
return_fig (bool;) – return figure object for saving to file.