def configure(self): if allExist(*self.autoresolution): pdis.setAutoColorResolution(*self.autoresolution) AxisSystem2D.configure(self) if allExist(*self.lengths): pdis.setColorAxisLengths(*self.lengths) if self.suppresscolorbar: pdis.suppressColorBar() pdis.setColorBarWidth(self.barwidth) pdis.setColorBarPositionHoriz(self.barpositionx) pdis.setColorBarPositionVert(self.barpositiony) if not allExist(*self.autoresolution): pdis.setColorResolution(*self.resolution)
def configure(self): AxisSystem2D.configure(self) l = self.lengths3D pdis.setAxisLengths3D(l[0], l[1], l[2]) v = self.viewpoint if allExist(*v): pdis.setView3D(v[0], v[1], v[2], self.viewtype) f = self.focuspoint pdis.setFocus3D(f[0], f[1], f[2], self.focustype) pdis.setCameraRotation3D(self.camerarotation) pdis.setViewAngle3D(self.viewangle) if self.centered: pdis.centerAxis()
def configure(self): DrawObject.configure(self) if not self.hideparts: pdis.setNoHiddenLines() if self.protected: pdis.setProtectSurfaces() pdis.setSurfaceVisibility(self.visibility) pdis.setSurfaceColors(self.topcolor, self.bottomcolor) pdis.setSurfaceShadingMode(self.shadingmode) pdis.setSurfaceMeshing(self.mesh, self.shadingon) pdis.setSurfaceMeshColor(self.meshcolor) if allExist(*self.colorscale): pdis.setSurfaceColorScale(self.colorscale[0], self.colorscale[1])
def __init__(self, func=None, xstart=None, xstop=None, xstep=None,\ ystart=None, ystop=None, ystep=None, zstep=None, **keywords): Object.__init__(self, **keywords) self.setdata( func = func, xstart = xstart, xstop = xstop, xstep = xstep, ystart = ystart, ystop = ystop, ystep = ystep, zstep = zstep, contours = None, ) if allExist(func, xstart, xstop, xstep, ystart, ystop, ystep, zstep): self.setup_data() self.setup_contours()
def configure(self): SurfaceObject.configure(self) if allExist(*self.surfacelimits): pdis.setSurfaceSize(*self.surfacelimits) self.args = (self.matrix, self.nx, self.ny, self.xinterp, self.yinterp)