8000 Backport PR #29601: DOC: Duplicate catergorial values are mapped to t… · matplotlib/matplotlib@71dd07b · GitHub
[go: up one dir, main page]

Skip to content

Commit 71dd07b

Browse files
story645meeseeksmachine
authored andcommitted
Backport PR #29601: DOC: Duplicate catergorial values are mapped to the same position
1 parent 35eb7b4 commit 71dd07b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

galleries/examples/lines_bars_and_markers/categorical_variables.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@
2020

2121

2222
# %%
23-
# This works on both Axes:
23+
# Categorical values are a mapping from names to positions. This means that
24+
# values that occur multiple times are mapped to the same position. See the
25+
# ``cat`` and ``dog`` values "happy" and "bored" on the y-axis in the following
26+
# example.
2427

2528
cat = ["bored", "happy", "bored", "bored", "happy", "bored"]
2629
dog = ["happy", "happy", "happy", "happy", "bored", "bored"]

0 commit comments

Comments
 (0)
0