plot_rv_curves

Contents

plot_rv_curves#

thejoker.plot_rv_curves(samples, t_grid=None, rv_unit=None, data=None, ax=None, plot_kwargs={}, data_plot_kwargs={}, add_labels=True, relative_to_t_ref=False, apply_mean_v0_offset=True, max_t_grid=None)#

Plot radial velocity curves for the input set of orbital parameter samples over the input grid of times.

Parameters:
  • samples (JokerSamples) – Posterior samples from The Joker.

  • t_grid (array_like, ~astropy.time.Time, optional) – Array of times. Either in BMJD or as an Astropy Time object. If not specified, the time grid will be set to the data range with a small buffer.

  • rv_unit (~astropy.units.UnitBase, optional) – The units to use when plotting RV’s.

  • data (~thejoker.data.RVData, optional) – Over-plot the data as well.

  • ax (~matplotlib.Axes, optional) – A matplotlib axes object to plot on to. If not specified, will create a new figure and plot on that.

  • plot_kwargs (dict, optional) – Passed to matplotlib.pyplot.plot().

  • data_plot_kwargs (dict, optional) – Passed to thejoker.data.RVData.plot().

  • add_labels (bool, optional) – Add labels to the axes or not.

  • relative_to_t_ref (bool, optional) – Plot the time axis relative to samples.t_ref.

  • max_t_grid (int, optional) – The maximum number of grid points to use when

Returns:

fig

Return type:

~matplotlib.Figure