ColormapRegistry

class glue.config.ColormapRegistry[source]

Bases: glue.config.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(self, label, cmap)

Add colormap cmap with label label.

default_members(self)

The member items provided by default.

name_from_cmap(self, cmap_desired)

Methods Documentation

add(self, label, cmap)[source]

Add colormap cmap with label label.

default_members(self)[source]

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

name_from_cmap(self, cmap_desired)[source]