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

Commitebeb83a

Browse files
committed
MAINT: make test code a little more explicit in what's done.
1 parentbbe738f commitebeb83a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

‎lib/matplotlib/tests/test_axes.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4532,10 +4532,10 @@ def test_errorbar_nan(fig_test, fig_ref):
45324532
xs=range(5)
45334533
ys=np.array([1,2,np.nan,np.nan,3])
45344534
es=np.array([4,5,np.nan,np.nan,6])
4535-
ax.errorbar(xs,ys,es)
4535+
ax.errorbar(xs,ys,yerr=es)
45364536
ax=fig_ref.add_subplot()
4537-
ax.errorbar([0,1], [1,2], [4,5])
4538-
ax.errorbar([4], [3], [6],fmt="C0")
4537+
ax.errorbar([0,1], [1,2],yerr=[4,5])
4538+
ax.errorbar([4], [3],yerr=[6],fmt="C0")
45394539

45404540

45414541
@check_figures_equal()
@@ -4545,10 +4545,10 @@ def test_errorbar_masked_negative(fig_test, fig_ref):
45454545
mask=np.array([False,False,True,True,False])
45464546
ys=np.ma.array([1,2,2,2,3],mask=mask)
45474547
es=np.ma.array([4,5,-1,-10,6],mask=mask)
4548-
ax.errorbar(xs,ys,es)
4548+
ax.errorbar(xs,ys,yerr=es)
45494549
ax=fig_ref.add_subplot()
4550-
ax.errorbar([0,1], [1,2], [4,5])
4551-
ax.errorbar([4], [3], [6],fmt="C0")
4550+
ax.errorbar([0,1], [1,2],yerr=[4,5])
4551+
ax.errorbar([4], [3],yerr=[6],fmt="C0")
45524552

45534553

45544554
@image_comparison(['hist_stacked_stepfilled.png','hist_stacked_stepfilled.png'])

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp