frb.figures.galaxies

Module for basic plots related to FRB host and foreground galaxies

frb.figures.galaxies.sub_image(fig, hdu, FRB, img_center=None, imsize=<Quantity 30. arcsec>, vmnx=(None, None), xyaxis=(0.15, 0.15, 0.8, 0.8), fsz=15.0, tick_spacing=None, invert=False, cmap='Blues', frb_clr='red')[source]
Args:
  • fig

  • hdu

  • FRB

  • img_center

  • imsize

  • vmnx

  • xyaxis

  • fsz

  • tick_spacing

  • invert

  • cmap

  • cclr

Returns:

frb.figures.galaxies.sub_bpt(ax_BPT, galaxies, clrs, markers, show_kewley=True, SDSS_clr='BuGn', show_legend=True, bptdat=None)[source]

Generate a BPT diagram

To use this code, you must download the SDSS_BPT_stellar_mass.fits file from https://drive.google.com/open?id=1yHlfsvcRPXK73F6hboT1nM4bRF59ESab and put it in data/Public/SDSS

Args:
  • ax_BPT (matplotlib.Axis)

  • galaxies (list) – List of FRBGalaxy objects

  • clrs (list) – List of colors

  • markers (list) – List of markers

  • show_kewley (bool, optional) – Show the BPT lines?

  • SDSS_clr (str, optional) – Set the color map for SDSS

  • show_legend (bool, optional) – Show a legend

  • bptdat (Table like) – SDSS BPT data

Returns:

ax_BPT is modified in place

frb.figures.galaxies.sub_sfms(ax_M, galaxies, clrs, markers, show_legend=True)[source]

Generate a SF vs. M* plot on top of PRIMUS galaxies

Args:
  • ax_M (matplotlib.axis)

  • galaxies (list) – List of FRB.galaxies.frbgalaxy.FRBGalaxy objects

  • clrs (list or str) – List of matplotlib colors if ‘auto’, sources are colored according to their SFR

  • markers (list) – List of matplotlib marker types

  • show_legend (bool, optional)

frb.figures.galaxies.sub_color_mag(ax, galaxies, clrs, markers)[source]

Generate a color-magnitude diagram using PRIMUS data and FRB galaxies

Args:
  • ax (matplotlib.Axis)

  • galaxies (list) – List of FRB.galaxies.frbgalaxy.FRBGalaxy objects

  • clrs (list) – List of matplotlib colors

  • markers (list) – List of matplotlib marker types

Returns: