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 f1dbe0e

Browse filesBrowse 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
Copy full SHA for f1dbe0e

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
@@ -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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.