matplotlib.markers#
Functions to handle markers; used by the marker functionality ofplot,scatter, anderrorbar.
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 | |
| nothing | |
|
| Render the string using mathtext.E.g |
| A list of (x, y) pairs used for Pathvertices. The center of the marker islocated at (0, 0) and the size isnormalized, such that the created pathis encapsulated inside the unit cell. | |
| A | |
| A regular polygon with | |
| A star-like symbol with | |
| An asterisk with |
Note that special symbols can be defined via theSTIX math font,e.g."$\u266B$". For an overview over the STIX font symbols refer to theSTIX font table.Also see theSTIX Fonts.
Integer numbers from0 to11 create lines and triangles. Those areequally accessible via capitalized variables, likeCARETDOWNBASE.Hence the following are equivalent:
plt.plot([1,2,3],marker=11)plt.plot([1,2,3],marker=matplotlib.markers.CARETDOWNBASE)
Markers join and cap styles can be customized by creating a new instance ofMarkerStyle.A MarkerStyle can also have a customTransformallowing it to be arbitrarily rotated or offset.
Examples showing the use of markers:
Classes#
| A class representing marker types. |





































