Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3667891

Browse files
committed
pyplot.plotfile: forced grid draw removed and documented
1 parent c1b62af commit 3667891

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

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
@@ -2101,8 +2101,7 @@ def polar(*args, **kwargs):
21012101

21022102
def plotfile(fname, cols=(0,), plotfuncs=None,
21032103
comments='#', skiprows=0, checkrows=5, delimiter=',', names=None,
2104-
subplots=True, newfig=True,
2105-
**kwargs):
2104+
subplots=True, newfig=True, **kwargs):
21062105
"""
21072106
Plot the data in in a file.
21082107
@@ -2198,9 +2197,6 @@ def getname_val(identifier):
21982197
elif i==1:
21992198
ax = fig.add_subplot(1,1,1)
22002199

2201-
ax.grid(True)
2202-
2203-
22042200
yname, y = getname_val(cols[i])
22052201
ynamelist.append(yname)
22062202

0 commit comments

Comments
 (0)