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

Skip to content

Commit 9f1cae6

Browse files
add test case for pos=None
1 parent 84c25d7 commit 9f1cae6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/matplotlib/tests/test_category.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ def test_StrCategoryFormatter(self, ax, ydata):
154154
labels = cat.StrCategoryFormatter(unit._mapping)
155155
for i, d in enumerate(ydata):
156156
assert labels(i, i) == d
157+
assert labels(i, None) == d
157158

158159
@pytest.mark.parametrize("ydata", cases, ids=ids)
159160
@pytest.mark.parametrize("plotter", PLOT_LIST, ids=PLOT_IDS)

0 commit comments

Comments
 (0)