@@ -4532,10 +4532,23 @@ def test_errorbar_nan(fig_test, fig_ref):
4532
4532
xs = range (5 )
4533
4533
ys = np .array ([1 , 2 , np .nan , np .nan , 3 ])
4534
4534
es = np .array ([4 , 5 , np .nan , np .nan , 6 ])
4535
- ax .errorbar (xs , ys , es )
4535
+ ax .errorbar (xs , ys , yerr = es )
4536
4536
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" )
4539
+
4540
+
4541
+ @check_figures_equal ()
4542
+ def test_errorbar_masked_negative (fig_test , fig_ref ):
4543
+ ax = fig_test .add_subplot ()
4544
+ xs = range (5 )
4545
+ mask = np .array ([False , False , True , True , False ])
4546
+ ys = np .ma .array ([1 , 2 , 2 , 2 , 3 ], mask = mask )
4547
+ es = np .ma .array ([4 , 5 , - 1 , - 10 , 6 ], mask = mask )
4548
+ ax .errorbar (xs , ys , yerr = es )
4549
+ ax = fig_ref .add_subplot ()
4550
+ ax .errorbar ([0 , 1 ], [1 , 2 ], yerr = [4 , 5 ])
4551
+ ax .errorbar ([4 ], [3 ], yerr = [6 ], fmt = "C0" )
4539
4552
4540
4553
4541
4554
@image_comparison (['hist_stacked_stepfilled.png' , 'hist_stacked_stepfilled.png' ])
0 commit comments