fruitbat.plot

fruitbat.plot.cosmology_comparison(filename='', extension='png', usetex=False, passed_ax=None, **kwargs)[source]

Create a plot comparing how the estimated redshift changes as a function of dispersion mesure for each cosmology.

Parameters:
  • filename (string, optional)
  • The filename of the saved figure. Default (“cosmology_comparison”)
  • extension (string, optional) – The format to save the figure. e.g “png”, “pdf”, “eps”, etc… Default: “png”

Generates

A figure displaying how estimated redshift changes as a function of dispersion measure for each of the different cosmologies.

fruitbat.plot.method_comparison(filename=None, extension='png', usetex=False, passed_ax=None, **kwargs)[source]

Create a plot comparing how estimated redshift changes as a function of dispersion measure for each DM-z relation.

Parameters:
  • filename (string or None, optional) – The filename of the saved figure. Default: None
  • extension (string, optional) – The format to save the figure. e.g “png”, “pdf”, “eps”, etc… Default: “png”
  • usetex (bool, optional) – Use LaTeX for for fonts.
  • passed_ax (or None, optional)

Generates

A figure displaying how estimated redshift changes as a function of dispersion measure for each of the different cosmologies.

fruitbat.plot.set_rc_params(usetex=False)[source]

Set the rcParams that will be used in all the plots.