matplotlib.markers — Matplotlib 3.10.1 documentation (original) (raw)

Functions to handle markers; used by the marker functionality ofplot, scatter, anderrorbar.

All possible markers are defined here:

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 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)

Markers join and cap styles can be customized by creating a new instance of MarkerStyle. A MarkerStyle can also have a custom Transformallowing it to be arbitrarily rotated or offset.

Examples showing the use of markers:

Classes#