fastplotlib.graphics._features.CmapFeatureΒΆ
- class CmapFeature(parent, colors, cmap_name, cmap_values)[source]ΒΆ
Indexable colormap feature, mostly wraps colors and just provides a way to set colormaps.
Same event pick info as
ColorFeature
- Parameters:
parent (Graphic or GraphicCollection)
colors (str, array, or iterable) β specify colors as a single human readable string, RGBA array, or an iterable of strings or RGBA arrays
n_colors (int) β number of colors to hold, if passing in a single str or single RGBA array
alpha (float) β alpha value for the colors