Skip to content
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

pyplot.plotfile. gridon option added with default from rcParam. #1297

Merged
merged 1 commit into from Dec 3, 2012
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions doc/api/api_changes.rst
Expand Up @@ -15,6 +15,11 @@ For new features that were added to matplotlib, please see
Changes in 1.3.x
================

* Removed call of :meth:`~matplotlib.axes.Axes.grid` in
:meth:`~matplotlib.pyplot.plotfile`. To draw the axes grid, set to *True*
matplotlib.rcParams['axes.grid'] or ``axes.grid`` in ``.matplotlibrc`` or
explicitly call :meth:`~matplotlib.axes.Axes.grid`

* A new keyword *extendrect* in :meth:`~matplotlib.pyplot.colorbar` and
:class:`~matplotlib.colorbar.ColorbarBase` allows one to control the shape
of colorbar extensions.
Expand Down
6 changes: 1 addition & 5 deletions lib/matplotlib/pyplot.py
Expand Up @@ -2101,8 +2101,7 @@ def polar(*args, **kwargs):

def plotfile(fname, cols=(0,), plotfuncs=None,
comments='#', skiprows=0, checkrows=5, delimiter=',', names=None,
subplots=True, newfig=True,
**kwargs):
subplots=True, newfig=True, **kwargs):
"""
Plot the data in in a file.

Expand Down Expand Up @@ -2198,9 +2197,6 @@ def getname_val(identifier):
elif i==1:
ax = fig.add_subplot(1,1,1)

ax.grid(True)


yname, y = getname_val(cols[i])
ynamelist.append(yname)

Expand Down