my_code_base.plot¶
This module contains various helper functions for plotting.
Submodules¶
Functions¶
|
Convert an XML file to a matplotlib colormap. |
Package Contents¶
- my_code_base.plot.xml_to_cmap(xml)[source]¶
Convert an XML file to a matplotlib colormap.
- Parameters:¶
- Returns:¶
The generated colormap.
- Return type:¶
- Raises:¶
ValueError – If the length of position is not the same as colors.
ValueError – If position does not start with 0 and end with 1.
Source: http://schubert.atmos.colostate.edu/~cslocum/custom_cmap.html