plotting stem with a continuous line
Posted
by Abruzzo Forte e Gentile
on Stack Overflow
See other posts from Stack Overflow
or by Abruzzo Forte e Gentile
Published on 2010-05-02T10:15:51Z
Indexed on
2010/05/02
10:27 UTC
Read the original article
Hit count: 186
python
|matplotlib
Hi All
I need to plot a stem plot of my signal using python and matplotlib.
I saw the example and the code but the line connecting the black big dot and the x-axis is not a continous line. Do you know whether is possible and how to get a straight line instead?
Thank you very much
AFG
#!/usr/bin/env python from pylab import * x = linspace(0.1, 2*pi, 10) markerline, stemlines, baseline = stem(x, cos(x), '-.') setp(markerline, 'markerfacecolor', 'b') setp(baseline, 'color','r', 'linewidth', 2) show()
© Stack Overflow or respective owner