@@ -4532,10 +4532,23 @@ 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" )
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" )
45394552
45404553
45414554@image_comparison (['hist_stacked_stepfilled.png' , 'hist_stacked_stepfilled.png' ])
0 commit comments