@@ -4438,10 +4438,23 @@ def test_errorbar_nan(fig_test, fig_ref):
44384438 xs = range (5 )
44394439 ys = np .array ([1 , 2 , np .nan , np .nan , 3 ])
44404440 es = np .array ([4 , 5 , np .nan , np .nan , 6 ])
4441- ax .errorbar (xs , ys , es )
4441+ ax .errorbar (xs , ys , yerr = es )
44424442 ax = fig_ref .add_subplot ()
4443- ax .errorbar ([0 , 1 ], [1 , 2 ], [4 , 5 ])
4444- ax .errorbar ([4 ], [3 ], [6 ], fmt = "C0" )
4443+ ax .errorbar ([0 , 1 ], [1 , 2 ], yerr = [4 , 5 ])
4444+ ax .errorbar ([4 ], [3 ], yerr = [6 ], fmt = "C0" )
4445+
4446+
4447+ @check_figures_equal ()
4448+ def test_errorbar_masked_negative (fig_test , fig_ref ):
4449+ ax = fig_test .add_subplot ()
4450+ xs = range (5 )
4451+ mask = np .array ([False , False , True , True , False ])
4452+ ys = np .ma .array ([1 , 2 , 2 , 2 , 3 ], mask = mask )
4453+ es = np .ma .array ([4 , 5 , - 1 , - 10 , 6 ], mask = mask )
4454+ ax .errorbar (xs , ys , yerr = es )
4455+ ax = fig_ref .add_subplot ()
4456+ ax .errorbar ([0 , 1 ], [1 , 2 ], yerr = [4 , 5 ])
4457+ ax .errorbar ([4 ], [3 ], yerr = [6 ], fmt = "C0" )
44454458
44464459
44474460@image_comparison (['hist_stacked_stepfilled' , 'hist_stacked_stepfilled' ])
0 commit comments