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 = 'nanoscope'#
cmap = None#
__str__()[source]#
set(name: str)#

Set the ColorMap.

Parameters:

name (str) – Name of colormap

get_cmap()[source]#

Return the matplotlib.cm colormap object

static nanoscope()[source]#

Returns a matplotlib compatible colormap that replicates the Bruker Nanoscope colorscale The colormap is implemented in Gwyddion’s GwyGradient via ‘Nanoscope.txt’

Original Nanoscope.txt

Gwyddion resource GwyGradient 0 0 0 0 1 0.124464 0 0 0 1 0.236052 0.0670103 0 0 1 0.371245 0.253338 0 0 1 0.472103 0.392344 0.0721649 0 1 0.611588 0.584587 0.334114 0 1 0.708155 0.717678 0.515464 0.252575 1 0.714052 0.725806 0.527471 0.268 1 0.890558 0.969072 0.886843 0.76343 1 0.933476 0.987464 0.974227 0.883897 1 0.944709 0.992278 0.980523 0.915426 1 0.965682 0.995207 0.992278 0.974293 1 0.971401 0.996006 0.993565 0.990347 1 1 1 1 1 1