corrected the mesh and made new plots
This commit is contained in:
+3
-2
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user