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

Commit2a64a0d

Browse files
committed
FIX: allow ValueError as well in _check_1d
1 parent77a0446 commit2a64a0d

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

‎lib/matplotlib/tests/test_axes.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1749,11 +1749,12 @@ def test_bar_hatches(fig_test, fig_ref):
17491749

17501750
deftest_pandas_minimal_plot(pd):
17511751
# smoke test that series and index objcets do not warn
1752-
x=pd.Series([1,2],dtype="float64")
1753-
plt.plot(x,x)
1754-
plt.plot(x.index,x)
1755-
plt.plot(x)
1756-
plt.plot(x.index)
1752+
forxin [pd.Series([1,2],dtype="float64"),
1753+
pd.Series([1,2],dtype="Float32")]:
1754+
plt.plot(x,x)
1755+
plt.plot(x.index,x)
1756+
plt.plot(x)
1757+
plt.plot(x.index)
17571758

17581759

17591760
@image_comparison(['hist_log'],remove_text=True)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp