API
class Plot2D(Txq2dPlotWin):
def __init__(self, window, data):
Txq2dPlotWin.__init__(self, window)
self.data = data
self.x = Numeric.arrayrange(data.xmax)
self.setAxes(data.xmin, data.zmin,
data.xmax,data.zmax)
def slice(self, i):
self.setSeries(self.x,
self.data.xSlice(i))
primarily setSeries() as shown and setPoints() for scatter plots
API
class Plot3D(Txq3dPlotWin):
def __init__(self, window, mesh):
Txq3dPlotWin.__init__(self, window)
self.setAxes(mesh.xmin, mesh.ymin,
mesh.zmin, mesh.xmax,
mesh.ymax, mesh.zmax)
self.mesh = mesh
def meshChanged(self):
self.setMesh(self.mesh.frame())
primarily setMesh() as shown and setPoints(x array, y array, z array) for scatter plots