Skip to content

Commit d7ac421

Browse files
committed
Fix wrong direction curly quotes in marker table, fit the (numsides, style, angle) description inside the table, group 'nothing' marker
1 parent b1bab75 commit d7ac421

File tree

1 file changed

+46
-49
lines changed

1 file changed

+46
-49
lines changed

lib/matplotlib/markers.py

Lines changed: 46 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -8,29 +8,29 @@
88
============================== ===============================================
99
marker description
1010
============================== ===============================================
11-
"." point
12-
"," pixel
13-
"o" circle
14-
"v" triangle_down
15-
"^" triangle_up
16-
"<" triangle_left
17-
">" triangle_right
18-
"1" tri_down
19-
"2" tri_up
20-
"3" tri_left
21-
"4" tri_right
22-
"8" octagon
23-
"s" square
24-
"p" pentagon
25-
"*" star
26-
"h" hexagon1
27-
"H" hexagon2
28-
"+" plus
29-
"x" x
30-
"D" diamond
31-
"d" thin_diamond
32-
"|" vline
33-
"_" hline
11+
`"."` point
12+
`","` pixel
13+
`"o"` circle
14+
`"v"` triangle_down
15+
`"^"` triangle_up
16+
`"<"` triangle_left
17+
`">"` triangle_right
18+
`"1"` tri_down
19+
`"2"` tri_up
20+
`"3"` tri_left
21+
`"4"` tri_right
22+
`"8"` octagon
23+
`"s"` square
24+
`"p"` pentagon
25+
`"*"` star
26+
`"h"` hexagon1
27+
`"H"` hexagon2
28+
`"+"` plus
29+
`"x"` x
30+
`"D"` diamond
31+
`"d"` thin_diamond
32+
`"|"` vline
33+
`"_"` hline
3434
TICKLEFT tickleft
3535
TICKRIGHT tickright
3636
TICKUP tickup
@@ -42,43 +42,40 @@
4242
CARETLEFTBASE caretleft (centered at base)
4343
CARETRIGHTBASE caretright (centered at base)
4444
CARETUPBASE caretup (centered at base)
45-
"None" nothing
46-
None nothing
47-
" " nothing
48-
"" nothing
45+
`"None"`, None, `" "`, or `""` nothing
4946
``'$...$'`` render the string using mathtext.
5047
`verts` a list of (x, y) pairs used for Path vertices.
5148
The center of the marker is located at (0,0) and
5249
the size is normalized.
5350
path a `~matplotlib.path.Path` instance.
54-
(`numsides`, `style`, `angle`) see below
51+
(`numsides`, `style`, `angle`) The marker can also be a tuple (`numsides`,
52+
`style`, `angle`), which will create a custom,
53+
regular symbol.
54+
55+
`numsides`:
56+
the number of sides
57+
58+
`style`:
59+
the style of the regular symbol:
60+
""""""
61+
===== ===================================
62+
Value Description
63+
0 a regular polygon
64+
1 a star-like symbol
65+
2 an asterisk
66+
3 a circle (`numsides` and `angle` is
67+
ignored)
68+
===== ===================================
69+
""""""
70+
`angle`:
71+
the angle of rotation of the symbol
5572
============================== ===============================================
5673
57-
The marker can also be a tuple (`numsides`, `style`, `angle`), which
58-
will create a custom, regular symbol.
59-
60-
`numsides`:
61-
the number of sides
62-
63-
`style`:
64-
the style of the regular symbol:
65-
66-
===== =============================================
67-
Value Description
68-
===== =============================================
69-
0 a regular polygon
70-
1 a star-like symbol
71-
2 an asterisk
72-
3 a circle (`numsides` and `angle` is ignored)
73-
===== =============================================
74-
75-
`angle`:
76-
the angle of rotation of the symbol, in degrees
77-
7874
For backward compatibility, the form (`verts`, 0) is also accepted,
7975
but it is equivalent to just `verts` for giving a raw set of vertices
8076
that define the shape.
8177
"""
78+
8279
from __future__ import (absolute_import, division, print_function,
8380
unicode_literals)
8481

0 commit comments

Comments
 (0)