truncated_cmap

truncated_cmap(cmap, lo=0.0, hi=1.0, N=256)[source]

Truncates a LinearSegmentedColormap colormap.

Returns:

The truncated colormap.

Return type:

LinearSegmentedColormap