sherlockpipe.plot.plotting.save_transit_plot

sherlockpipe.plot.plotting.save_transit_plot(object_id: str, title: str, plot_dir: str, file: str, time, lc, transit_result: TransitResult, cadence, run_no: int, plot_harmonics: bool = False)

Stores the search results plot with: 1) The entire curve with the transit model 2)The folded curve and the transit model 3) The power spectrum of the TLS search 4) Only if the flag is enabled, the TLS search harmonics power spectrum.

Parameters:
  • object_id (str) – the target id

  • title (str) – title for the plot

  • plot_dir (str) – directory where the plot should be stored

  • file (str) – the file name of the plot

  • time – the time array of the light curve

  • lc – the flux value of the light curve

  • transit_result (TransitResult) – the TransitResult object containing the search results

  • cadence – the cadence of the curve in days

  • run_no (int) – the SHERLOCK run of the results

  • plot_harmonics (bool) – whether the harmonics power spectrum should be plotted