Functions to handle markers; used by the marker functionality of plot
, scatter
, and errorbar
.
All possible markers are defined here:
marker | symbol | description |
---|---|---|
| point | |
| pixel | |
| circle | |
| triangle_down | |
| triangle_up | |
| triangle_left | |
| triangle_right | |
| tri_down | |
| tri_up | |
| tri_left | |
| tri_right | |
| octagon | |
| square | |
| pentagon | |
| plus (filled) | |
| star | |
| hexagon1 | |
| hexagon2 | |
| plus | |
| x | |
| x (filled) | |
| diamond | |
| thin_diamond | |
| vline | |
| hline | |
| tickleft | |
| tickright | |
| tickup | |
| tickdown | |
| caretleft | |
| caretright | |
| caretup | |
| caretdown | |
| caretleft (centered at base) | |
| caretright (centered at base) | |
| caretup (centered at base) | |
| caretdown (centered at base) | |
| nothing | |
| Render the string using mathtext. E.g | |
| A list of (x, y) pairs used for Path vertices. The center of the marker is located at (0, 0) and the size is normalized, such that the created path is encapsulated inside the unit cell. | |
path | A | |
| A regular polygon with | |
| A star-like symbol with | |
| An asterisk with |
None
is the default which means 'nothing', however this table is referred to from other docs for the valid inputs from marker inputs and in those cases None
still means 'default'.
Note that special symbols can be defined via the STIX math font, e.g. "$\u266B$"
. For an overview over the STIX font symbols refer to the STIX font table. Also see the STIX Fonts.
Integer numbers from 0
to 11
create lines and triangles. Those are equally accessible via capitalized variables, like CARETDOWNBASE
. Hence the following are equivalent:
plt.plot([1, 2, 3], marker=11) plt.plot([1, 2, 3], marker=matplotlib.markers.CARETDOWNBASE)
Examples showing the use of markers:
| A class representing marker types. |
© 2012–2021 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/3.5.1/api/markers_api.html