~ubuntu-branches/ubuntu/intrepid/plplot/intrepid

« back to all changes in this revision

Viewing changes to examples/python/xw22.py

  • Committer: Bazaar Package Importer
  • Author(s): Rafael Laboissiere
  • Date: 2006-11-04 10:19:34 UTC
  • mfrom: (2.1.8 edgy)
  • Revision ID: james.westby@ubuntu.com-20061104101934-mlirvdg4gpwi6i5q
Tags: 5.6.1-10
* Orphaning the package
* debian/control: Changed the maintainer to the Debian QA Group

Show diffs side-by-side

added added

removed removed

Lines of Context:
86
86
    # Create data to be contoured
87
87
    r = 0.5+arange(nr)
88
88
    r.shape = (-1,1)
89
 
    theta = (2.*pi/float(ntheta-1))*(0.5+arange(ntheta-1))
 
89
    theta = (2.*pi/float(ntheta-1))*(0.5+arange(ntheta))
90
90
    xg = r*cos(theta)
91
91
    yg = r*sin(theta)
92
92
 
140
140
    pllab("(x)", "(y)", "#frPLplot Example 22 - potential gradient vector plot")
141
141
    # Plot contours of the potential
142
142
    dz = (zmax-zmin)/float(nlevel)
143
 
    clevel = zmin + (arange(20)+0.5)*dz
 
143
    clevel = zmin + (arange(nlevel)+0.5)*dz
144
144
    du = (umax-umin)/float(nlevel)
145
 
    clevelu = umin + (arange(20)+0.5)*du
 
145
    clevelu = umin + (arange(nlevel)+0.5)*du
146
146
    dv = (vmax-vmin)/float(nlevel)
147
 
    clevelv = vmin + (arange(20)+0.5)*dv
 
147
    clevelv = vmin + (arange(nlevel)+0.5)*dv
148
148
 
149
149
    plcol0(3)
150
150
    pllsty(2)