topostats.theme#
Custom Bruker Nanoscope colorscale.
Attributes#
Classes#
Class for setting the Colormap.  | 
Module Contents#
- topostats.theme.LOGGER#
 
- class topostats.theme.Colormap(name: str = 'nanoscope')[source]#
 Class for setting the Colormap.
- Parameters:
 name (str) – Name of colormap to use.
- name = 'nanoscope'#
 
- cmap = None#
 
- __str__() str[source]#
 Return string representation of object.
- Returns:
 String detailing the colormap.
- Return type:
 str
- set_cmap(name: str) None[source]#
 Set the ColorMap.
- Parameters:
 name (str) – Name of the colormap to return.
- get_cmap() matplotlib.cm[source]#
 Return the matplotlib.cm colormap object.
- Returns:
 Matplotlib Color map object.
- Return type:
 matplotlib.cm
- static nanoscope() matplotlib.colors.LinearSegmentedColormap[source]#
 Matplotlib compatible colormap that replicates the Bruker Nanoscope colorscale.
The colormap is implemented in Gwyddion’s GwyGradient via ‘Nanoscope.txt’.
- Returns:
 MatplotLib LinearSegmentedColourmap that replicates Bruker Nanoscope colorscale.
- Return type:
 LinearSegmentedColormap
- static gwyddion() matplotlib.colors.LinearSegmentedColormap[source]#
 Set RGBA colour map for the Gwyddion.net colour gradient.
- Returns:
 The ‘gwyddion’ colormap.
- Return type:
 LinearSegmentedColormap