Plotting#
Plotting Module#
High-level plotting routines for corner plots, chains, radar diagrams, best-fit spectra, CCFs, and RV–v sin i maps.
- class ForMoSA.nested_sampling.plotting.Plotting(results, logger, log_level='INFO')[source]#
Bases:
objectClass of visualisation of the results of the nested sampling.
- Parameters:
Notes
Authors: Paulina Palma-Bifani, Matthieu Ravet and Allan Denis
- plot_corner()[source]#
Corner plot the posterior samples from the nested sampling results.
- Parameters:
config (CornerPlotConfig) – Instance of class CornerPlotConfig
- Return type:
- Returns:
matplotlib.figure.Figure – Figure containin corner plots.
Notes
Authors: Paulina Palma-Bifani, Matthieu Ravet and Allan Denis
- plot_chains()[source]#
Plot the chains of the samples results.
- Parameters:
Returns
--------
tuple[matplotlib.figure.Figure – Tuple containing Figure and Ax objects
matplotlib.axes._axes.Axes] – Tuple containing Figure and Ax objects
- Return type:
Notes
Authors: Paulina Palma-Bifani, Matthieu Ravet and Allan Denis
- plot_radars()[source]#
Plot spider plot of the samples results.
- Return type:
- Returns:
tuple[matplotlib.figure.Figure, matplotlib.axes._axes.Axes]
Notes
Authors: Bhavesh Rajpoot (adapted from Paulina Palma-Bifani, Matthieu Ravet, Allan Denis)
- plot_fit(observations, best_fit, figsize=(18, 8), plot_native_model=False, native_model=None)[source]#
Plot best fit
- Parameters:
observations (
ObservationSet) – Instance of class ObservationSetbest_fit (
list[ObservedModel]) – List of instances of class ObservedModel corresponding to the best-fit model for each observationplot_native_model (
bool) – Whether to plot the native modelnative_model (
ObservedModel|None) – As instance of ObservedModel
- Return type:
- Returns:
tuple[Figure, Axes, Axes, Axes, Axes] – Figure and ax objects
Notes
Authors: Paulina Palma-Bifani, Matthieu Ravet and Allan Denis
- plot_ccf(rv_grid, ccf, acf, ccf_star=None, title=None)[source]#
Plot the Cross-Correlation Function (CCF).
- Parameters:
- Return type:
- Returns:
tuple[Figure, Axes] – Figure and Axes objects
Notes
Authors: Bhavesh Rajpoot and Allan Denis