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

Commit445047c

Browse files
committed
TST: add smoketest
1 parent058af73 commit445047c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

‎lib/matplotlib/tests/test_dates.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -583,6 +583,16 @@ def tz_convert(*args):
583583
_test_date2num_dst(pd.date_range,tz_convert)
584584

585585

586+
deftest_dateboxplot_pandas(pd):
587+
# smoke test that this doesn't fail.
588+
data=np.random.rand(5,2)
589+
years=pd.date_range('1/1/2000',
590+
periods=2,freq=pd.DateOffset(years=1)).year
591+
# Does not work
592+
plt.figure()
593+
plt.boxplot(data,positions=years)
594+
595+
586596
def_test_rrulewrapper(attach_tz,get_tz):
587597
SYD=get_tz('Australia/Sydney')
588598

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp