ifm_contrib.colormaps package¶
Module contents¶
This file is planned to provides the standard FEFLOW color maps to matplotlib. This is unfinished work, with only the standard raibow color map implemented by hard-coding. This file is meant to import the colormaps directly from the XML files in the same folder, which have been exported from the FEFLOW GUI. If anybody has some time, feel free to get going.
-
ifm_contrib.colormaps.
create_colormap_from_xml
(name, xmlfile, register_cmap=True)¶ Create a new Matplotlib Colormap from a FEFLOW colormap file (XML). The XML file can be created from the FEFLOW GUI (export colormap).
- Parameters
name (str) – name of the colormap
xmlfile (str) – path to the xml file.
register_cmap (bool) – If True (default), colormap is registered for use in matplotlib.
- Returns
-
ifm_contrib.colormaps.
plot_feflow_colorgradients
()¶ This code was adapted from https://matplotlib.org/examples/color/colormaps_reference.html