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

Skip to content

Commit e13216e

Browse files
authored
Merge pull request #27427 from jklymak/mnt-remove-xcorr-acorr
MNT/TST: remove xcorr and acorr from test_datetime
2 parents 8be243c + 7cfd688 commit e13216e

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1979,6 +1979,8 @@ def acorr(self, x, **kwargs):
19791979
Parameters
19801980
----------
19811981
x : array-like
1982+
Not run through Matplotlib's unit conversion, so this should
1983+
be a unit-less array.
19821984
19831985
detrend : callable, default: `.mlab.detrend_none` (no detrending)
19841986
A detrending function applied to *x*. It must have the
@@ -2056,6 +2058,8 @@ def xcorr(self, x, y, normed=True, detrend=mlab.detrend_none,
20562058
Parameters
20572059
----------
20582060
x, y : array-like of length n
2061+
Neither *x* nor *y* are run through Matplotlib's unit conversion, so
2062+
these should be unit-less arrays.
20592063
20602064
detrend : callable, default: `.mlab.detrend_none` (no detrending)
20612065
A detrending function applied to *x* and *y*. It must have the

lib/matplotlib/tests/test_datetime.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,6 @@
88

99

1010
class TestDatetimePlotting:
11-
@pytest.mark.xfail(reason="Test for acorr not written yet")
12-
@mpl.style.context("default")
13-
def test_acorr(self):
14-
fig, ax = plt.subplots()
15-
ax.acorr(...)
16-
1711
@mpl.style.context("default")
1812
def test_annotate(self):
1913
mpl.rcParams["date.converter"] = 'concise'
@@ -738,9 +732,3 @@ def test_violinplot(self):
738732
def test_vlines(self):
739733
fig, ax = plt.subplots()
740734
ax.vlines(...)
741-
742-
@pytest.mark.xfail(reason="Test for xcorr not written yet")
743-
@mpl.style.context("default")
744-
def test_xcorr(self):
745-
fig, ax = plt.subplots()
746-
ax.xcorr(...)

0 commit comments

Comments
 (0)