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

Skip to content

Commit 1838008

Browse files
committed
changed defaults on acorr and xcorr to norm, usevlines and maxlags=10
svn path=/trunk/matplotlib/; revision=6815
1 parent 1e1ad3b commit 1838008

3 files changed

Lines changed: 22 additions & 14 deletions

File tree

CHANGELOG

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2009-01-21 Changed the defaults of acorr and xcorr to use
2+
usevlines=True, maxlags=10 and normed=True since these are
3+
the best defaults
4+
15
2009-01-19 Fix bug in quiver argument handling. - EF
26

37
2009-01-19 Fix bug in backend_gtk: don't delete nonexistent toolbar. - EF

doc/api/api_changes.rst

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,24 @@ list may help describe what changes may be necessary in your code.
1919

2020
Changes for 0.98.x
2121
==================
22+
23+
* Changed the defaults of acorr and xcorr to use usevlines=True,
24+
maxlags=10 and normed=True since these are the best defaults
25+
2226
* Following keyword parameters for :class:`matplotlib.label.Label` are now
23-
deprecated and new set of parameters are introduced. The new parameters
24-
are given as a fraction of the font-size. Also, *scatteryoffsets*,
27+
deprecated and new set of parameters are introduced. The new parameters
28+
are given as a fraction of the font-size. Also, *scatteryoffsets*,
2529
*fancybox* and *columnspacing* are added as keyword parameters.
2630

2731
================ ================
2832
Deprecated New
2933
================ ================
30-
pad borderpad
31-
labelsep labelspacing
32-
handlelen handlelength
33-
handlestextsep handletextpad
34-
axespad borderaxespad
35-
================ ================
34+
pad borderpad
35+
labelsep labelspacing
36+
handlelen handlelength
37+
handlestextsep handletextpad
38+
axespad borderaxespad
39+
================ ================
3640

3741

3842
* Removed the configobj and experiemtnal traits rc support

lib/matplotlib/axes.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3543,8 +3543,8 @@ def acorr(self, x, **kwargs):
35433543
"""
35443544
call signature::
35453545
3546-
acorr(x, normed=False, detrend=mlab.detrend_none, usevlines=False,
3547-
maxlags=None, **kwargs)
3546+
acorr(x, normed=True, detrend=mlab.detrend_none, usevlines=True,
3547+
maxlags=10, **kwargs)
35483548
35493549
Plot the autocorrelation of *x*. If *normed* = *True*,
35503550
normalize the data by the autocorrelation at 0-th lag. *x* is
@@ -3602,13 +3602,13 @@ def acorr(self, x, **kwargs):
36023602
return self.xcorr(x, x, **kwargs)
36033603
acorr.__doc__ = cbook.dedent(acorr.__doc__) % martist.kwdocd
36043604

3605-
def xcorr(self, x, y, normed=False, detrend=mlab.detrend_none,
3606-
usevlines=False, maxlags=None, **kwargs):
3605+
def xcorr(self, x, y, normed=True, detrend=mlab.detrend_none,
3606+
usevlines=True, maxlags=10, **kwargs):
36073607
"""
36083608
call signature::
36093609
3610-
xcorr(x, y, normed=False, detrend=mlab.detrend_none,
3611-
usevlines=False, **kwargs):
3610+
def xcorr(self, x, y, normed=True, detrend=mlab.detrend_none,
3611+
usevlines=True, maxlags=10, **kwargs):
36123612
36133613
Plot the cross correlation between *x* and *y*. If *normed* =
36143614
*True*, normalize the data by the cross correlation at 0-th

0 commit comments

Comments
 (0)