r/IPython • • Sep 17 '14

Custom matplotlib stylesheets in v. 1.4

From a Jake Vanderplas tweet:

Custom matplotlib stylesheets in v. 1.4: http://matplotlib.org/users/style_sheets.html#customizing-plots-with-style-sheets …

Worth doing conda update matplotlib just for this feature.

From Documentation:

The style package adds support for easy-to-switch plotting “styles” with the same parameters as a matplotlibrc file.

There are a number of pre-defined styles provided by matplotlib. For example, there’s a pre-defined style called “ggplot”, which emulates the aesthetics of ggplot (a popular plotting package for R).

To upgrade using pip:

$ pip install matplotlib --upgrade

15 Upvotes

3 comments sorted by

1

u/westurner Oct 05 '14

Thanks! How does this compare to mpltools and seaborn?

2

u/NomadNella Oct 06 '14

I haven't used any predefined styles prior to this release so I can't say.

2

u/rjtavares Sep 17 '14

Tried it and love it. So easy to use and powerful...