frb.galaxies.mag_dm

Estimate magnitude range for a host FRB given DM and plot it

frb.galaxies.mag_dm.r_vs_dm_figure(z_min, z_max, z, PzDM, outfile='fig_r_vs_z.png', flipy=True, known_hosts=False, title=None, logz_scale=False)[source]

Plots the intersection of galaxy apparent magnitude evolution with redshift and redshift distribution of the FRB and saves it.

Args:
  • z_min (float) – min redshift of the confidence interval

  • z_max (float) – max redshift of the confidence intervale

  • z (array) – redshift array

  • PzDM (array) – pdf(z) PDF of redshifts for a given DM

  • outfile (str) – name of the output file. Default “fig_r_vs_z.png”

  • flipy (bool) – flip order of y-axis (mag) values. Default True

  • known_hosts (bool) – wish to overplot m_r - z for known FRB hosts. Default False

Note

Optional dependency: asymmetric_kde may be required for KDE-based workflows.