plot_lightcurve#
- elk.plot.plot_lightcurve(time, flux, fold_period=None, title=None, fig=None, ax=None, show=True, save_path=None, color='k', linewidth=0.5, **kwargs)[source]#
Plot a lightcurve
- Parameters
- time
ndarray Times of observations
- flux
ndarray Flux of each observation
- fold_periodfloat, optional
Period on which to fold the light curve, if None then no folding is done, by default None
- titlestr, optional
A title for the plot, by default None
- fig
Figure, optional Figure on which to plot, if either fig or ax is None then new ones are created, by default None
- ax
AxesSubplot, optional Axis on which to plot, if either fig or ax is None then new ones are created, by default None
- showbool, optional
Whether to show the plot, by default True
- save_pathstr, optional
Where to save the plot, if None then plot is not saved, by default None
- colorstr, optional
Colour to use for the lightcurve line, by default ‘k’
- linewidthfloat, optional
Linewidth for the lightcurve, by default 0.5
- **kwargs
Keyword arguments to pass to the plotting of the lightcurve line
- time
- Returns
- fig, ax
Figure,AxesSubplot Figure and axis on which the lightcurve has been plotted
- fig, ax