ColormapRegistry#

class glue.config.ColormapRegistry[source]#

Bases: Registry

Stores colormaps for the Image Viewer. The members property is a list of colormaps, each represented as a [name,cmap] pair.

Methods Summary

add(label, cmap)

Add colormap cmap with label label.

default_members()

The member items provided by default.

name_from_cmap(cmap_desired)

Methods Documentation

add(label, cmap)[source]#

Add colormap cmap with label label.

default_members()[source]#

The member items provided by default. These are put in this method so that code is only imported when needed

name_from_cmap(cmap_desired)[source]#