pytesmo.colormaps package

Submodules

pytesmo.colormaps.load_cmap module

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/stable/lib/python3.6/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/stable/lib/python3.6/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.

Module contents