frb.figures.dm
Module for basic plots related to FRB host and foreground galaxies
- frb.figures.dm.sub_cartoon(ax1, ax2, coord, zFRB, halos=False, host_DM=50.0, ymax=None, IGM_only=True, smin=0.1, cosmo=FlatLambdaCDM(name='Planck18', H0=<Quantity 67.66 km / (Mpc s)>, Om0=0.30966, Tcmb0=<Quantity 2.7255 K>, Neff=3.046, m_nu=<Quantity [0., 0., 0.06] eV>, Ob0=0.04897), show_M31=None, fg_halos=None, dsmx=0.05, FRB_DM=None, yscl=0.97)[source]
Cartoon of DM cumulative
Plot of increasing DM from Earth to the FRB
- Args:
ax1 (matplotlib.Axis) – First axis. Used for Milky Way and local group
ax2 (matplotlib.Axis) – Second axis. Used for Cosmic and Host
coord (astropy.coord.SkyCoord) – Coordinate of the FRB used with ne2001
zFRB (float) – Redshift of the FRB
halos (?, optional) – Not implemented!
host_DM (float) – DM to use for the Host
ymax (tuple or list) – ymin, ymax values for the y-axis
IGM_only (bool, optional) – Use only the IGM for DM_Cosmic, i.e. ignore the presumed average halo contribution
show_M31 (bool, optional) – Include M31 in the calculation? NOT IMPLEMENTED RIGHT NOW
fg_halos (dict or Table) – Used to add to DM_IGM Keys must include ‘z’ ‘DM’ ‘lbl’
smin (float, optional) – Minimum value in axis2 (Gpc)
dsmx (float, optional) – Padding on the x-axis; Gpc Allows for host. Set to 0 to ignore host
FRB_DM (float) – Observed value; sets ymax = FRB_DM+50
yscl (float, optional) – Controls placement of labels
cosmo (astropy.cosmology, optional) – Defaults to Repo Cosmology
- frb.figures.dm.fig_cosmic(frbs, clrs=None, outfile=None, multi_model=False, no_curves=False, F=0.2, cosmo=FlatLambdaCDM(name='Planck18', H0=<Quantity 67.66 km / (Mpc s)>, Om0=0.30966, Tcmb0=<Quantity 2.7255 K>, Neff=3.046, m_nu=<Quantity [0., 0., 0.06] eV>, Ob0=0.04897), widen=False, show_nuisance=False, ax=None, zmax=0.75, show_sigmaDM=False, cl=(16, 84), beta=3.0, gold_only=True, gold_frbs=None)[source]
- Args:
frbs (list) – list of FRB objects
clrs (list, optional)
outfile (str, optional)
multi_model (deprecated)
no_curves (bool, optional) – If True, just show the data
F (float, optional) – Feedback parameter
widen (bool, optional) – If True, make the plot wide
show_nuisance (bool, optional) – if True, add a label giving the Nuiscance value
show_sigmaDM (bool, optional) – If True, show a model estimate of the scatter in the DM relation
cl (tuple, optional) – Confidence limits for the scatter
beta (float, optional) – Parameter to the DM scatter estimation
gold_only (bool, optional) – If True, limit to the gold standard sample
gold_frbs (list, optional) – List of gold standard FRBs
ax (matplotlib.Axis, optional) – Use this axis instead of creating one
zmax (float, optional) – Max redshift for the MR line
cosmo (astropy.cosmology, optional) – Defaults to Repo Cosmology
- Returns:
ax (optional): if outfile is None
- Return type: