corrected the mesh and made new plots

This commit is contained in:
sm
2011-05-20 12:40:25 -06:00
parent 53d1375ec8
commit ab2e6655be
3 changed files with 15 additions and 14 deletions
+3 -2
View File
@@ -5,12 +5,12 @@ import numpy as np
class rect_grid(basegrid):
def __init__(self, xres = 5, yres = 5):
xmin = -1.0
xmin = 0.0
xmax = 1.0
xspan = xmax - xmin
xdel = xspan / float(xres - 1)
ymin = -1.0
ymin = 0.0
ymay = 1.0
yspan = ymay - ymin
ydel = yspan / float(yres - 1)
@@ -23,6 +23,7 @@ class rect_grid(basegrid):
for y in xrange(yres):
cur_y = ymin + (y * ydel)
verts.append([cur_x, cur_y])
basegrid.__init__(self, verts, q)