pytesmo.colormaps.load_cmap module

Module to load color maps from json files. This module is deprecated and will be removed soon. Please use the colorella package instead: Website: https://github.com/TUW-GEO/colorella To install colorella, run ‘pip install colorella’

pytesmo.colormaps.load_cmap.colormaps_path()[source]

Returns application’s default path for storing user-defined colormaps

pytesmo.colormaps.load_cmap.get_system_colormaps()[source]

Returns the list of colormaps that ship with matplotlib

pytesmo.colormaps.load_cmap.get_user_colormaps(cmap_fldr='/home/docs/checkouts/readthedocs.org/user_builds/pytesmo/conda/latest/lib/python3.10/site-packages/pytesmo/colormaps')[source]

Returns a list of user-defined colormaps in the specified folder (defaults to standard colormaps folder if not specified).

pytesmo.colormaps.load_cmap.load(cmap_name, cmap_folder='/home/docs/checkouts/readthedocs.org/user_builds/pytesmo/conda/latest/lib/python3.10/site-packages/pytesmo/colormaps')[source]

Returns the matplotlib colormap of the specified name - if not found in the predefined colormaps, searches for the colormap in the specified folder (defaults to standard colormaps folder if not specified).

pytesmo.colormaps.load_cmap.load_colormap(json_file)[source]

Generates and returns a matplotlib colormap from the specified JSON file, or None if the file was invalid.