Skip to content

Commit c5a8b6b

Browse files
committed
Add missing markers 'P' and 'X'
1 parent 3c4f845 commit c5a8b6b

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

lib/matplotlib/markers.py

+11-9
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,14 @@
2525
`"*"` star
2626
`"h"` hexagon1
2727
`"H"` hexagon2
28-
`"+"` plus (filled)
29-
`"x"` x (filled)
28+
`"+"` plus
29+
`"x"` x
3030
`"D"` diamond
3131
`"d"` thin_diamond
3232
`"|"` vline
3333
`"_"` hline
34+
`"P"` plus (filled)
35+
`"X"` x (filled)
3436
TICKLEFT tickleft
3537
TICKRIGHT tickright
3638
TICKUP tickup
@@ -42,15 +44,11 @@
4244
CARETLEFTBASE caretleft (centered at base)
4345
CARETRIGHTBASE caretright (centered at base)
4446
CARETUPBASE caretup (centered at base)
45-
`" "`, or `""` nothing
47+
`"None"`, `" "` or `""` nothing
4648
``'$...$'`` render the string using mathtext.
4749
`verts` a list of (x, y) pairs used for Path vertices.
4850
The center of the marker is located at (0,0) and
49-
the size is normalized. For backward
50-
compatibility, the form (`verts`, 0) is also
51-
accepted, but it is equivalent to just `verts`
52-
for giving a raw set of vertices that define the
53-
shape.
51+
the size is normalized.
5452
path a `~matplotlib.path.Path` instance.
5553
(`numsides`, `style`, `angle`) The marker can also be a tuple (`numsides`,
5654
`style`, `angle`), which will create a custom,
@@ -75,7 +73,11 @@
7573
the angle of rotation of the symbol
7674
============================== ===============================================
7775
78-
`None` is the default which often means 'nothing', however this table is
76+
For backward compatibility, the form (`verts`, 0) is also accepted,
77+
but it is equivalent to just `verts` for giving a raw set of vertices
78+
that define the shape.
79+
80+
`None` is the default which means 'nothing', however this table is
7981
referred to from other docs for the valid inputs from marker inputs and in
8082
those cases `None` still means 'default'.
8183
"""

0 commit comments

Comments
 (0)