ContinuousColormap.truncate¶
- ContinuousColormap.truncate(left=None, right=None, name=None, **kwargs)[source]¶
Return a truncated version of the colormap.
- Parameters
left (
float, default:0) – The colormap index for the new “leftmost” color. Must fall between0and1. For example,left=0.1cuts the leftmost 10%% of the colors.right (
float, default:1) – The colormap index for the new “rightmost” color. Must fall between0and1. For example,right=0.9cuts the leftmost 10%% of the colors.name (
str, default:'_name_copy') – The new colormap name.
- Other Parameters
**kwargs – Passed to
ContinuousColormap.copyorPerceptualColormap.copy.
See also