pyiem.plot.colormaps module#
Definition of colormaps
- pyiem.plot.colormaps.stretch_cmap(cmap, bins, extend='both')[source]#
Return a cmap with appropriate over,under,bad settings.
The issue at hand is that default color ramps do not properly extend to cover over and under using values from the color ramp. That is desired behaviour of this library. If over,under,bad is already set, those settings are retained.
- Parameters:
- Retuns:
cm.ColorMap