MCMC Plots

class radvel.plot.mcmc_plots.AutoPlot(auto, saveplot=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()[source]

Make and either save or display the autocorrelation plot

class radvel.plot.mcmc_plots.CornerPlot(post, chains, saveplot=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()[source]

Make and either save or display the corner plot

class radvel.plot.mcmc_plots.DerivedPlot(chains, P, saveplot=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()[source]

Make and either save or display the corner plot

class radvel.plot.mcmc_plots.TrendPlot(post, chains, nwalkers, nensembles, outfile=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()[source]

Make and save the trend plot as PDF

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

LaTeX label for parameter string

Return type:

string