cmap_to_mayavi

ifermi.plot.cmap_to_mayavi(colormap)[source]

Convert a matplotlib colormap to mayavi format.

Parameters:

colormap (Colormap) – A matplotlib colormap object.

Return type:

ndarray

Returns:

The equivalent mayavi colormap, as a (255, 4) numpy array.