sky_heatmap¶
- gdt.core.plot.lib.sky_heatmap(x, y, heatmap, ax, cmap='RdPu', norm=None, flipped=True, frame='equatorial', **kwargs)[source]¶
Plot a heatmap on the sky as a colormap gradient.
- Parameters:
x (np.array) – The azimuthal coordinate array of the heatmap grid
y (np.array) – The polar coordinate array of the heatmap grid
heatmap (np.array) – The heatmap array, of shape (x.size, y.size)
ax (matplotlib.axes) – Plot axes object
cmap (str, optional) – The colormap. Default is ‘RdPu’
norm (matplotlib.colors.Normalize or similar, optional) – The normalization used to scale the colormapping to the heatmap values. This can be initialized by Normalize, LogNorm, SymLogNorm, PowerNorm, or some custom normalization. Default is PowerNorm(gamma=0.3).
flipped (bool, optional) – If True, the azimuthal axis is flipped, following the equatorial convention
frame (str, optional) – Either ‘equatorial’, ‘galactic’, or ‘spacecraft’. Default is ‘equatorial’
**kwargs – Other plotting options
- Returns:
(matplotlib.collections.QuadMesh)