cmap_alphaο
- eomaps.helpers.cmap_alpha(cmap, alpha, interpolate=False, name='new_cmap')ο
add transparency to an existing colormap
- Parameters:
cmap (matplotlib.colormap) β the colormap to use
alpha (float) β the transparency
interpolate (bool) β indicator if a listed colormap (False) or a interpolated colormap (True) should be generated. The default is False
name (str) β the name of the new colormap The default is βnew_cmapβ
- Returns:
new_cmap β a new colormap with the desired transparency
- Return type:
matplotlib.colormap