| [ Web Proxy ] |
| Viewing: https://matplotlib.org/stable/api/_as_gen/../markers_api.html | [Back] [Original] |
Section Navigation
matplotlibmatplotlib.animationmatplotlib.artistmatplotlib.axesmatplotlib.axismatplotlib.backend_basesmatplotlib.backend_managersmatplotlib.backend_toolsmatplotlib.backendsmatplotlib.backends.backend_mixedmatplotlib.backends.backend_templatematplotlib.backends.backend_aggmatplotlib.backends.backend_cairomatplotlib.backends.backend_gtk3agg, matplotlib.backends.backend_gtk3cairomatplotlib.backends.backend_gtk4agg, matplotlib.backends.backend_gtk4cairomatplotlib.backends.backend_nbaggmatplotlib.backends.backend_pdfmatplotlib.backends.backend_pgfmatplotlib.backends.backend_psmatplotlib.backends.registrymatplotlib.backends.backend_qtagg, matplotlib.backends.backend_qtcairomatplotlib.backends.backend_svgmatplotlib.backends.backend_tkagg, matplotlib.backends.backend_tkcairomatplotlib.backends.backend_webagg_corematplotlib.backends.backend_webaggmatplotlib.backends.backend_wxagg, matplotlib.backends.backend_wxcairomatplotlib.beziermatplotlib.categorymatplotlib.cbookmatplotlib.cmmatplotlib.collectionsmatplotlib.colorbarmatplotlib.colorizermatplotlib.colorsmatplotlib.containermatplotlib.contourmatplotlib.datesmatplotlib.dvireadmatplotlib.figurematplotlib.font_managermatplotlib.ft2fontmatplotlib.gridspec
matplotlib.hatchmatplotlib.imagematplotlib.insetmatplotlib.layout_enginematplotlib.legendmatplotlib.legend_handlermatplotlib.lines
matplotlib.markers
matplotlib.mathtextmatplotlib.mlabmatplotlib.offsetboxmatplotlib.patchesmatplotlib.pathmatplotlib.patheffectsmatplotlib.pyplotmatplotlib.projections
matplotlib.quiver
matplotlib.rcsetupmatplotlib.sankeymatplotlib.scalematplotlib.sphinxext.mathmplmatplotlib.sphinxext.plot_directivematplotlib.sphinxext.figmpl_directivematplotlib.sphinxext.rolesmatplotlib.spinesmatplotlib.stylematplotlib.tablematplotlib.testingmatplotlib.textmatplotlib.texmanagermatplotlib.tickermatplotlib.transformsmatplotlib.trimatplotlib.typingmatplotlib.unitsmatplotlib.widgetsmatplotlib._afmmatplotlib._apimatplotlib._docstringmatplotlib._enumsmatplotlib._type1fontmatplotlib._tight_bboxmatplotlib._tight_layoutmpl_toolkits.mplot3dmpl_toolkits.axes_grid1mpl_toolkits.axisartistpylabmatplotlib.markersmatplotlib.markers#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 |
|
|
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. |
|
|
A |
|
|
A regular polygon with |
|
|
A star-like symbol with |
|
|
An asterisk with |
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:
|
A class representing marker types. |
Copyright 20022012 John Hunter, Darren Dale, Eric Firing, Michael Droettboom and the Matplotlib development team; 20122026 The Matplotlib development team.
Created using Sphinx 9.1.0.
Built from v3.11.2-1-g879ad8ebba.
Built with the PyData Sphinx Theme 0.16.1.
| Web Proxy Viewer | New URL | Original Page |