viscid.plot.mpl_extra module

Some common customizations for matplotlib

Include Steve’s tick formatting. This maybe should go somewhere else.

Register some perceptual cubehelix colormaps with matplotlib. These are good for the colorblind ;)

viscid.plot.mpl_extra.steve_cbarfmt

Steve’s colorbar tick formatter

viscid.plot.mpl_extra.steve_axfmt

Steve’s axis tick formatter

Note

All of the above maps should have ‘_r’ variants as well. In addition, this module has an attribute cmapname_rgb with the rgba ndarray data.

See also

viscid.plot.mpl_style: This is where rc file
customizations should now be placed
class viscid.plot.mpl_extra.OrigSteveScalarFormatter(useOffset=None, useMathText=None, useLocale=None)[source]

Bases: matplotlib.ticker.ScalarFormatter

pprint_val(x)[source]
class viscid.plot.mpl_extra.SteveScalarFormatter(max_sigfigs=2, useMathText=True, **kwargs)[source]

Bases: matplotlib.ticker.ScalarFormatter

pprint_val(x)[source]
viscid.plot.mpl_extra.post_rc_actions(show_warning=True)[source]