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

Skip to content

Commit b49232d

Browse files
authored
Merge pull request #19966 from meeseeksmachine/auto-backport-of-pr-19963-on-v3.4.x
Backport PR #19963 on branch v3.4.x (test_StrCategoryLocator using parameterized plotter)
2 parents 3767fd0 + 3c28b77 commit b49232d

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)