Stem plot

plot 05 stem

Live figure — pick a tool, then zoom, pan, point-pick or annotate. Nothing is active until a tool is selected.

View this figure’s Vega export ↗ — the raw JSON spec, rendered live by a real Vega engine.

View this figure’s Vega-Lite export ↗ — the raw JSON spec(s), rendered live by a real Vega-Lite engine.

import numpy as np
import plotpress

x = np.linspace(0, 2 * np.pi, 24)
fig, ax = plotpress.subplots()
ax.stem(x, np.sin(x))
ax.set_title("Stem plot")
fig.tight_layout()

Total running time of the script: (0 minutes 0.080 seconds)

Gallery generated by Sphinx-Gallery