8000 Merge pull request #1297 from montefra/plotfile_grid · matplotlib/matplotlib@f1dbe0e · GitHub
[go: up one dir, main page]

Skip to content

Commit f1dbe0e

Browse files
committed
Merge pull request #1297 from montefra/plotfile_grid
pyplot.plotfile. gridon option added with default from rcParam.
2 parents 66de428 + 3667891 commit f1dbe0e

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

doc/api/api_changes.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ For new features that were added to matplotlib, please see
1515
Changes in 1.3.x
1616
================
1717

18+
* Removed call of :meth:`~matplotlib.axes.Axes.grid` in
19+
:meth:`~matplotlib.pyplot.plotfile`. To draw the axes grid, set to *True*
20+
matplotlib.rcParams['axes.grid'] or ``axes.grid`` in ``.matplotlibrc`` or
21+
explicitly call :meth:`~matplotlib.axes.Axes.grid`
22+
1823
* A new keyword *extendrect* in :meth:`~matplotlib.pyplot.colorbar` and
1924
:class:`~matplotlib.colorbar.ColorbarBase` allows one to control the shape
2025
of colorbar extensions.

lib/matplotlib/pyplot.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2099,8 +2099,7 @@ def polar(*args, **kwargs):
20992099

21002100
def plotfile(fname, cols=(0,), plotfuncs=None,
21012101
comments='#', skiprows=0, checkrows=5, delimiter=',', names=None,
2102-
subplots=True, newfig=True,
2103-
**kwargs):
2102+
subplots=True, newfig=True, **kwargs):
21042103
"""
21052104
Plot the data in in a file.
21062105
@@ -2196,9 +2195,6 @@ def getname_val(identifier):
21962195
elif i==1:
21972196
ax = fig.add_subplot(1,1,1)
21982197

2199-
ax.grid(True)
2200-
2201-
22022198
yname, y = getname_val(cols[i])
22032199
ynamelist.append(yname)
22042200

0 commit comments

Comments
 (0)
0