bebi103.viz.mpl_cmap_to_color_mapper

bebi103.viz.mpl_cmap_to_color_mapper(cmap)

Convert a Matplotlib colormap to a bokeh.models.LinearColorMapper instance.

Parameters:

cmap (str) – A string giving the name of the color map.

Returns:

output – A linear color_mapper with 25 gradations.

Return type:

bokeh.models.LinearColorMapper instance

Notes

See https://matplotlib.org/examples/color/colormaps_reference.html for available Matplotlib colormaps.