Skip to content

Commit faedd11

Browse files
jorisvandenbosschejreback
authored andcommitted
DOC/DEPR: remove remaining occurences of mpl_style from docs (GH12190)
@TomAugspurger There were some remaining usages of `options.display.mpl_style` in the docs, so removed those + also removed the reference to it in the text. Author: Joris Van den Bossche <[email protected]> Closes #12326 from jorisvandenbossche/doc-remove-depr-mpl-default and squashes the following commits: fa3a537 [Joris Van den Bossche] DOC/DEPR: remove remaining occurences of mpl_style from docs (GH12190)
1 parent b5aecab commit faedd11

File tree

2 files changed

+3
-14
lines changed

2 files changed

+3
-14
lines changed

doc/source/dsintro.rst

+1-4
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@
1010
pd.options.display.max_rows = 15
1111
1212
import matplotlib
13-
try:
14-
matplotlib.style.use('ggplot')
15-
except AttributeError:
16-
pd.options.display.mpl_style = 'default'
13+
matplotlib.style.use('ggplot')
1714
import matplotlib.pyplot as plt
1815
plt.close('all')
1916

doc/source/visualization.rst

+2-10
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@
1010
np.set_printoptions(precision=4, suppress=True)
1111
pd.options.display.max_rows = 15
1212
import matplotlib
13-
try:
14-
matplotlib.style.use('ggplot')
15-
except AttributeError:
16-
pd.options.display.mpl_style = 'default'
13+
matplotlib.style.use('ggplot')
1714
import matplotlib.pyplot as plt
1815
plt.close('all')
1916
@@ -34,11 +31,6 @@ The plots in this document are made using matplotlib's ``ggplot`` style (new in
3431
import matplotlib
3532
matplotlib.style.use('ggplot')
3633
37-
If your version of matplotlib is 1.3 or lower, you can set ``display.mpl_style`` to ``'default'``
38-
with ``pd.options.display.mpl_style = 'default'``
39-
to produce more appealing plots.
40-
When set, matplotlib's ``rcParams`` are changed (globally!) to nicer-looking settings.
41-
4234
We provide the basics in pandas to easily create decent looking plots.
4335
See the :ref:`ecosystem <ecosystem.visualization>` section for visualization
4436
libraries that go beyond the basics documented here.
@@ -189,7 +181,7 @@ For labeled, non-time series data, you may wish to produce a bar plot:
189181
@savefig bar_plot_ex.png
190182
df.ix[5].plot.bar(); plt.axhline(0, color='k')
191183
192-
Calling a DataFrame's :meth:`~DataFrame.plot.bar` method produces a multiple
184+
Calling a DataFrame's :meth:`plot.bar() <DataFrame.plot.bar>` method produces a multiple
193185
bar plot:
194186

195187
.. ipython:: python

0 commit comments

Comments
 (0)