viscid.plot.mpl_style module

Apply some viscid-specific matplotlib styling

This module provides some extra style sheets as well as a layer to set viscid-specific rc parameters and activate specific style sheets from your viscidrc file.

viscid.plot.mpl_style.use_styles

a list of style sheet names to activate

Type:sequence
viscid.plot.mpl_style.rc_params

dictionary of parameters that get directly injected into matplotlib.rcParams

Type:dict
viscid.plot.mpl_style.rc

specify rc parameters through matplotlib.rc(…). Keys are groups and the values should be dictionaries that will be unpacked into the rc function call.

Type:dict
Style Sheets:
See Matplotlib Style Gallery for a review of available style sheets.
Rc Parameters:

Here are some viscid-specific options that can be put into the matplotlib rcParams

  • viscid.cbarfmt: Formatter for colorbars
  • viscid.majorfmt: Major tick formatter
  • viscid.minorfmt: Minor tick formatter
  • viscid.majorloc: Major tick locator
  • viscid.minorloc: Minor tick locator
  • image.cmap: Default colormap
  • viscid.symmetric_cmap: Default colormap for plots with
    symmetric limits
viscid.plot.mpl_style.inject_viscid_styles(show_warning=True)[source]
viscid.plot.mpl_style.post_rc_actions(show_warning=True)[source]