Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 16545df

Browse filesBrowse files
NelleVQuLogic
authored andcommitted
Merge pull request #7499 from trpham/7342-Improve-Markers-api-documentation
Improve the the marker table in markers_api documentation
1 parent aef8acd commit 16545df
Copy full SHA for 16545df

File tree

Expand file treeCollapse file tree

1 file changed

+52
-51
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+52
-51
lines changed

‎lib/matplotlib/markers.py

Copy file name to clipboardExpand all lines: lib/matplotlib/markers.py
+52-51Lines changed: 52 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -8,31 +8,31 @@
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
34-
"P" plus (filled)
35-
"X" x (filled)
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+
`"P"` plus (filled)
26+
`"*"` star
27+
`"h"` hexagon1
28+
`"H"` hexagon2
29+
`"+"` plus
30+
`"x"` x
31+
`"X"` x (filled)
32+
`"D"` diamond
33+
`"d"` thin_diamond
34+
`"|"` vline
35+
`"_"` hline
3636
TICKLEFT tickleft
3737
TICKRIGHT tickright
3838
TICKUP tickup
@@ -44,43 +44,44 @@
4444
CARETLEFTBASE caretleft (centered at base)
4545
CARETRIGHTBASE caretright (centered at base)
4646
CARETUPBASE caretup (centered at base)
47-
"None" nothing
48-
None nothing
49-
" " nothing
50-
"" nothing
47+
`"None"`, `" "` or `""` nothing
5148
``'$...$'`` render the string using mathtext.
5249
`verts` a list of (x, y) pairs used for Path vertices.
5350
The center of the marker is located at (0,0) and
5451
the size is normalized.
5552
path a `~matplotlib.path.Path` instance.
56-
(`numsides`, `style`, `angle`) see below
53+
(`numsides`, `style`, `angle`) The marker can also be a tuple (`numsides`,
54+
`style`, `angle`), which will create a custom,
55+
regular symbol.
56+
57+
`numsides`:
58+
the number of sides
59+
60+
`style`:
61+
the style of the regular symbol:
62+
""""""
63+
===== ===================================
64+
Value Description
65+
0 a regular polygon
66+
1 a star-like symbol
67+
2 an asterisk
68+
3 a circle (`numsides` and `angle` is
69+
ignored)
70+
===== ===================================
71+
""""""
72+
`angle`:
73+
the angle of rotation of the symbol
5774
============================== ===============================================
5875
59-
The marker can also be a tuple (`numsides`, `style`, `angle`), which
60-
will create a custom, regular symbol.
61-
62-
`numsides`:
63-
the number of sides
64-
65-
`style`:
66-
the style of the regular symbol:
67-
68-
===== =============================================
69-
Value Description
70-
===== =============================================
71-
0 a regular polygon
72-
1 a star-like symbol
73-
2 an asterisk
74-
3 a circle (`numsides` and `angle` is ignored)
75-
===== =============================================
76-
77-
`angle`:
78-
the angle of rotation of the symbol, in degrees
79-
8076
For backward compatibility, the form (`verts`, 0) is also accepted,
8177
but it is equivalent to just `verts` for giving a raw set of vertices
8278
that define the shape.
79+
80+
`None` is the default which means 'nothing', however this table is
81+
referred to from other docs for the valid inputs from marker inputs and in
82+
those cases `None` still means 'default'.
8383
"""
84+
8485
from __future__ import (absolute_import, division, print_function,
8586
unicode_literals)
8687

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.