LinearSegmentedColormap.punched

LinearSegmentedColormap.punched(cut=None, name=None, **kwargs)[source]

Return a version of the colormap with the center “punched out”. This is great for making the transition from “negative” to “positive” in a diverging colormap more distinct.

Parameters
Returns

LinearSegmentedColormap – The colormap.