Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3c28b77

Browse files
story645meeseeksmachine
authored andcommitted
Backport PR #19963: test_StrCategoryLocator using parameterized plotter
1 parent 5892572 commit 3c28b77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/tests/test_category.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def test_StrCategoryLocator(self):
140140

141141
@pytest.mark.parametrize("plotter", PLOT_LIST, ids=PLOT_IDS)
142142
def test_StrCategoryLocatorPlot(self, ax, plotter):
143-
ax.plot(["a", "b", "c"])
143+
plotter(ax, [1, 2, 3], ["a", "b", "c"])
144144
np.testing.assert_array_equal(ax.yaxis.major.locator(), range(3))
145145

146146

0 commit comments

Comments
 (0)