This module provides the Colormap object
Bases: PyQt4.QtCore.QObject
Description of a colormap
Parameters: |
|
---|
constant for linear normalization
constant for logarithmic normalization
Tuple of managed normalizations
Set the name of the colormap and load the colors corresponding to the name
Parameters: | name (str) – the name of the colormap (should be in [‘gray’, ‘reversed gray’, ‘temperature’, ‘red’, ‘green’, ‘blue’, ‘jet’, ‘viridis’, ‘magma’, ‘inferno’, ‘plasma’] |
---|
Return the list of colors for the colormap. None if not setted
Returns: | the list of colors for the colormap. None if not setted |
---|---|
Return type: | numpy.ndarray |
Set the colors of the colormap.
Parameters: | colors (numpy.ndarray) – the colors of the LUT |
---|
Return the normalization of the colormap (‘log’ or ‘linear’)
Returns: | the normalization of the colormap |
---|---|
Return type: | str |
Set the norm (‘log’, ‘linear’)
Parameters: | norm (str) – the norm to set |
---|
Return the lower bound of the colormap
Returns: | the lower bound of the colormap |
---|---|
Return type: | float or None |
Set the minimal value of the colormap
Parameters: | vmin (float) – Lower bound of the colormap or None for autoscale (default) value) |
---|
Return the upper bounds of the colormap or None
Returns: | the upper bounds of the colormap or None |
---|---|
Return type: | float or None |
Set the maximal value of the colormap
Parameters: | vmax (float) – Upper bounds of the colormap or None for autoscale (default) |
---|
Return (vmin, vmax)
Returns: | the tuple vmin, vmax fitting vmin, vmax, normalization and data if any given |
---|---|
Return type: | tuple |
Set bounds to the colormap
Parameters: |
|
---|