From 366789156b2573d6b6ee0398f7ce9fdba59fc73a Mon Sep 17 00:00:00 2001 From: montefra Date: Wed, 21 Nov 2012 10:22:47 +0100 Subject: [PATCH] pyplot.plotfile: forced grid draw removed and documented --- doc/api/api_changes.rst | 5 +++++ lib/matplotlib/pyplot.py | 6 +----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/doc/api/api_changes.rst b/doc/api/api_changes.rst index 2bd2de115a28..8a595273c5f2 100644 --- a/doc/api/api_changes.rst +++ b/doc/api/api_changes.rst @@ -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. diff --git a/lib/matplotlib/pyplot.py b/lib/matplotlib/pyplot.py index 4dd2f44504ba..75ce2eb27ce4 100644 --- a/lib/matplotlib/pyplot.py +++ b/lib/matplotlib/pyplot.py @@ -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. @@ -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)