Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commite13216e

Browse files
authored
Merge pull request#27427 from jklymak/mnt-remove-xcorr-acorr
MNT/TST: remove xcorr and acorr from test_datetime
2 parents8be243c +7cfd688 commite13216e

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
classTestDatetimePlotting:
11-
@pytest.mark.xfail(reason="Test for acorr not written yet")
12-
@mpl.style.context("default")
13-
deftest_acorr(self):
14-
fig,ax=plt.subplots()
15-
ax.acorr(...)
16-
1711
@mpl.style.context("default")
1812
deftest_annotate(self):
1913
mpl.rcParams["date.converter"]='concise'
@@ -738,9 +732,3 @@ def test_violinplot(self):
738732
deftest_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-
deftest_xcorr(self):
745-
fig,ax=plt.subplots()
746-
ax.xcorr(...)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp