stam.plot.plot_cmd
- stam.plot.plot_cmd(bp_rp, mg, title=None, ax=None, cmap='Greys', bins=500)[source]
Plot a two-dimensional histogram of the Gaia color-magnitude diagram (CMD).
- Parameters:
bp_rp (array_like) – Gaia Gbp-Grp color.
mg (array_like) – Gaia G-band absolute magnitude (same size as bp_rp).
title (str, optional) – Plot title (default: None).
ax (Axes object, optional) – Matplotlib Axes in which to plot (default: None).
cmap (str, optional) – Colormap (default: “Greys”).
bins (int, optional) – Number of bins in the 2D histogram (default: 500).
- Returns:
ax – Matplotlib Axes.
- Return type:
Axes object, optional