Menu

[r540]: / trunk / htdocs / examples / stem_plot.py  Maximize  Restore  History

Download this file

10 lines (7 with data), 231 Bytes

1
2
3
4
5
6
7
8
9
#!/usr/bin/env python
from matplotlib.matlab import *
x = linspace(0.1, 2*pi, 10)
markerline, stemlines, baseline = stem(x, cos(x), '-.')
set(markerline, 'markerfacecolor', 'b')
set(baseline, 'color','r', 'linewidth', 2)
show()
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.