Sophie

Sophie

distrib > Mandriva > 2010.2 > i586 > media > contrib-backports > by-pkgid > a44f8c7e78ee9c5838c1fb080c9e7630 > files > 1423

python-matplotlib-doc-1.1.1-1mdv2010.1.noarch.rpm

.. _pylab_examples-stem_plot:

pylab_examples example code: stem_plot.py
=========================================



.. plot:: /home/mandrake/rpm/BUILD/matplotlib-1.1.1/doc/mpl_examples/pylab_examples/stem_plot.py

::

    #!/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()
    

Keywords: python, matplotlib, pylab, example, codex (see :ref:`how-to-search-examples`)