Sophie

Sophie

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

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

#!/usr/bin/env python

"""
You can precisely specify dashes with an on/off ink rect sequence in
points.
"""
from pylab import *

dashes = [5,2,10,5] # 5 points on, 2 off, 3 on, 1 off

l, = plot(arange(20), '--')
l.set_dashes(dashes)

show()