matplotlib.markers#

Functions to handle markers; used by the marker functionality of plot, scatter, and errorbar.

All possible markers are defined here:

As a deprecated feature, None also means 'nothing' when directly constructing a MarkerStyle, but note that there are other contexts where marker=None instead means "the default marker" (e.g. rcParams["scatter.marker"] (default: 'o') for Axes.scatter).

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)

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

Examples showing the use of markers:

Classes#