MCMC Plots

class radvel.plot.mcmc_plots.AutoPlot(auto: <Mock name = 'mock.DataFrame' id='139945839985920'>, saveplot: str | None = None)[source]

Class to handle the creation of an autocorrelation time plot from output autocorrelation times.

Parameters:
  • auto (DataFrame) – Autocorrelation times output by radvel.mcmc

  • saveplot (str, optional) – Name of output file, will show as interactive matplotlib window if not defined.

plot() None[source]

Make and either save or display the autocorrelation plot

class radvel.plot.mcmc_plots.CornerPlot(post: Posterior, chains: <Mock name = 'mock.DataFrame' id='139945839985920'>, saveplot: str | None = None)[source]

Class to handle the creation of a corner plot from output MCMC chains and a posterior object.

Parameters:
  • post (radvel.Posterior) – radvel posterior object

  • chains (DataFrame) – MCMC chains output by radvel.mcmc

  • saveplot (str, optional) – Name of output file, will show as interactive matplotlib window if not defined.

plot() None[source]

Make and either save or display the corner plot

class radvel.plot.mcmc_plots.DerivedPlot(chains: <Mock name = 'mock.DataFrame' id='139945839985920'>, P: ModuleType, saveplot: str | None = None)[source]

Class to handle the creation of a corner plot of derived parameters from output MCMC chains and a posterior object.

Parameters:
  • chains (DataFrame) – MCMC chains output by radvel.mcmc

  • P – object representation of config file

  • (Optional[string] (saveplot) – Name of output file, will show as interactive matplotlib window if not defined.

plot() None[source]

Make and either save or display the corner plot

class radvel.plot.mcmc_plots.TrendPlot(post: Posterior, chains: <Mock name = 'mock.DataFrame' id='139945839985920'>, nwalkers: int, nensembles: int, outfile: str | None = None)[source]

Class to handle the creation of a trend plot to show the evolution of the MCMC as a function of step number.

Parameters:
  • post (radvel.Posterior) – Radvel Posterior object

  • chains (DataFrame) – MCMC chains output by radvel.mcmc

  • nwalkers (int) – number of walkers used in this particular MCMC run

  • outfile (string [optional]) – name of output multi-page PDF file

plot() None[source]

Make and save the trend plot as PDF

radvel.plot.mcmc_plots.texlabel(key: str, letter: str) str[source]
Parameters:
  • key (string) – list of parameter strings

  • letter (string) – planet letter

Returns:

LaTeX label for parameter string

Return type:

string