Skip to content

Commit e76ec60

Browse files
author
y-p
committed
DOC: mention display.mpl_style in viz.rst
1 parent 363b214 commit e76ec60

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

doc/source/visualization.rst

+10
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
:suppress:
66
77
import numpy as np
8+
import pandas as pd
89
from numpy.random import randn, rand, randint
910
np.random.seed(123456)
1011
from pandas import DataFrame, Series, date_range, options
@@ -31,6 +32,15 @@ We use the standard convention for referencing the matplotlib API:
3132
3233
import matplotlib.pyplot as plt
3334
35+
The ``display.mpl_style`` option was added in 0.11.0, to produce more appealing plots.
36+
When set, matplotlib's ``rcParams`` are changed (globally!) to nicer-looking settings.
37+
All the plots in the documentation are rendered with this option set to the
38+
'default' style.
39+
40+
.. ipython:: python
41+
42+
pd.options.display.mpl_style = 'default'
43+
3444
.. _visualization.basic:
3545

3646
Basic plotting: ``plot``

0 commit comments

Comments
 (0)