cmap_to_plotly

ifermi.plot.cmap_to_plotly(colormap)[source]

Convert a matplotlib colormap to plotly colorscale format.

Parameters:

colormap (Colormap) – A matplotlib colormap object.

Return type:

list[str]

Returns:

The equivalent plotly colorscale.