We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 573b54d commit 13cad5dCopy full SHA for 13cad5d
lib/matplotlib/tests/test_collections.py
@@ -831,21 +831,18 @@ def test_collection_set_verts_array():
831
assert np.array_equal(ap._codes, atp._codes)
832
833
834
-@pytest.mark.parametrize("fname", ["fill_between", "fill_betweenx"])
835
@check_figures_equal(extensions=["png"])
836
-def test_fbp_collection_set_data(fname, fig_test, fig_ref):
+def test_fbp_collection_set_data(fig_test, fig_ref):
837
t = np.linspace(0, 16)
838
f1 = np.sin(t)
839
f2 = f1 + 0.2
840
f3 = f2.copy()
841
f3[10], f3[20] = f3[20], f3[10]
842
843
- ax_ref = fig_ref.subplots()
844
- getattr(ax_ref, fname)(t, f1, f2)
+ fig_ref.subplots().fill_between(t, f1, f2)
845
846
- ax2 = fig_test.subplots()
847
- coll2 = getattr(ax2, fname)(t, f1, f3)
848
- coll2.set_data(t, f1, f2)
+ coll = fig_test.subplots().fill_between(t, f1, f3)
+ coll.set_data(t, f1, f2)
849
850
851
@pytest.mark.parametrize(("t_direction", "shape", "where", "msg"), [
0 commit comments