matplotlibrc icon indicating copy to clipboard operation
matplotlibrc copied to clipboard

some example matplotlibrc files, and a script display their effects

matplotlibrc demos

Some -- but not all -- characteristics of matplotlib plots can be configured via the matplotlib.rcParams dictionary.

Add a new matplotlibrc file to the rc dir, say myrc, and use::

$ ./showstyle.py myrc

See the showstyle.py file for usage -- for example, note how hist and scatter grab the first color in rcParams['axes.color_cycle'] since there's no way to set the default scatter or hist color via rcParams.

See also

  • https://github.com/olgabot/prettyplotlib
  • https://github.com/mwaskom/seaborn

Screenshots

Some included styles are:

  • default

.. image:: screenshots/default.png

  • ggplotish

.. image:: screenshots/ggplotish.png

  • probpro

.. image:: screenshots/probpro.png

  • rlike

.. image:: screenshots/rlike.png