def set_axes(self): plots.Plot2D.set_axes(self) cmtx = utilities.toComplex(self.matrix) all = Num.ravel(cmtx) allx, ally = all.real, all.imag ai = plots.auto_axes2D(allx, ally, squared = 1) self.axes.xaxis(min = ai.xmin, max = ai.xmax, tickstart = ai.xstart, tickstep = ai.xstep) self.axes.yaxis(min = ai.ymin, max = ai.ymax, tickstart = ai.ystart, tickstep = ai.ystep) self.axes(squared = 1)
def configure(self): cmtx = utilities.toComplex(self.matrix) self.lines = [] for row in cmtx: xl, yl = row.real, row.imag curve = pxdislin.Curve(xl,yl) curve(style = self.linestyle, interpolation = self.interpolation) self.lines.append(curve) for col in Num.transpose(cmtx): xl, yl = col.real, col.imag curve = pxdislin.Curve(xl,yl) curve(style = self.linestyle, interpolation = self.interpolation) self.lines.append(curve)