matplotlib


Travis-CI:

Related Topics

This Page

Stem PlotΒΆ

../../_images/sphx_glr_stem_plot_001.png
import matplotlib.pyplot as plt
import numpy as np

x = np.linspace(0.1, 2*np.pi, 10)
markerline, stemlines, baseline = plt.stem(x, np.cos(x), '-.')
plt.setp(baseline, 'color', 'r', 'linewidth', 2)

plt.show()

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

Generated by Sphinx-Gallery