| [ Web Proxy ] |
| Viewing: https://matplotlib.org/gallery/mplot3d/../misc/../mplot3d/../lines_bars_and_markers/stem_plot.html | [Back] [Original] |
Section Navigation
fill_between with transparencyhisttype settingsplt.subplotsfloating_axes featuresNote
Go to the end to download the full example code.
stem plots vertical lines from a baseline to the y-coordinate and
places a marker at the tip.
[stem plot]The position of the baseline can be adapted using bottom.
The parameters linefmt, markerfmt, and basefmt control basic format
properties of the plot. However, in contrast to plot not all
properties are configurable via keyword arguments. For more advanced
control adapt the line objects returned by pyplot.
markerline, stemlines, baseline = plt.stem(
x, y, linefmt='grey', markerfmt='D', bottom=1.1)
markerline.set_markerfacecolor('none')
plt.show()
[stem plot]References
The use of the following functions, methods, classes and modules is shown in this example:
Tags: plot-type: stem level: beginner
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 |