topostats.theme#

Custom Bruker Nanoscope colorscale.

Attributes#

Classes#

Colormap

Class for setting the Colormap.

Module Contents#

topostats.theme.LOGGER#
class topostats.theme.Colormap(name: str = 'nanoscope')[source]#

Class for setting the Colormap.

name#
cmap = None#
__str__()[source]#

Return string representation of object.

set_cmap(name: str)[source]#

Set the ColorMap.

Parameters:

name (str) – Name of colormap

get_cmap()[source]#

Return the matplotlib.cm colormap object.

static nanoscope()[source]#

Matplotlib compatible colormap that replicates the Bruker Nanoscope colorscale.

The colormap is implemented in Gwyddion’s GwyGradient via ‘Nanoscope.txt’.

static gwyddion()[source]#

Set RGBA colour map for the Gwyddion.net colour gradient.

static blu()[source]#

Set RGBA colour map of just the colour blue.