Skip to content

DOC/DEPR: remove remaining occurences of mpl_style from docs (GH12190) #12326

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions doc/source/dsintro.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@
pd.options.display.max_rows = 15
import matplotlib
try:
matplotlib.style.use('ggplot')
except AttributeError:
pd.options.display.mpl_style = 'default'
matplotlib.style.use('ggplot')
import matplotlib.pyplot as plt
plt.close('all')
Expand Down
12 changes: 2 additions & 10 deletions doc/source/visualization.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@
np.set_printoptions(precision=4, suppress=True)
pd.options.display.max_rows = 15
import matplotlib
try:
matplotlib.style.use('ggplot')
except AttributeError:
pd.options.display.mpl_style = 'default'
matplotlib.style.use('ggplot')
import matplotlib.pyplot as plt
plt.close('all')
Expand All @@ -34,11 +31,6 @@ The plots in this document are made using matplotlib's ``ggplot`` style (new in
import matplotlib
matplotlib.style.use('ggplot')
If your version of matplotlib is 1.3 or lower, you can set ``display.mpl_style`` to ``'default'``
with ``pd.options.display.mpl_style = 'default'``
to produce more appealing plots.
When set, matplotlib's ``rcParams`` are changed (globally!) to nicer-looking settings.

We provide the basics in pandas to easily create decent looking plots.
See the :ref:`ecosystem <ecosystem.visualization>` section for visualization
libraries that go beyond the basics documented here.
Expand Down Expand Up @@ -189,7 +181,7 @@ For labeled, non-time series data, you may wish to produce a bar plot:
@savefig bar_plot_ex.png
df.ix[5].plot.bar(); plt.axhline(0, color='k')
Calling a DataFrame's :meth:`~DataFrame.plot.bar` method produces a multiple
Calling a DataFrame's :meth:`plot.bar() <DataFrame.plot.bar>` method produces a multiple
bar plot:

.. ipython:: python
Expand Down