Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3667891

Browse filesBrowse files
committed
pyplot.plotfile: forced grid draw removed and documented
1 parent c1b62af commit 3667891
Copy full SHA for 3667891

File tree

Expand file treeCollapse file tree

2 files changed

+6
-5
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+6
-5
lines changed

‎doc/api/api_changes.rst

Copy file name to clipboardExpand all lines: doc/api/api_changes.rst
+5Lines 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

Copy file name to clipboardExpand all lines: lib/matplotlib/pyplot.py
+1-5Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.