From 1997872d9e6c6cf99302ba85c6d0c1ac8006bfeb 2012-10-30 21:40:46 From: Daniel Valdez Date: 2012-10-30 21:40:46 Subject: [PATCH] Nueva version para graficos Scope, RTI, Spectra. Se hicieron pruebas con los experimentos EwDRIFTS, MST, IMAGING --- diff --git a/schainpy2/Graphics/schainPlot.py b/schainpy2/Graphics/schainPlot.py index febfb8e..e39a220 100644 --- a/schainpy2/Graphics/schainPlot.py +++ b/schainpy2/Graphics/schainPlot.py @@ -25,33 +25,28 @@ class Figure: figuretitle = "" xrangestep = None - def __init__(self,idfigure, nframes, wintitle, xw=600, yw=800, overplot=0, driver='plplot', colorbar= True, colormap=None, *args): + def __init__(self,idfigure, nframes, wintitle, xw=600, yw=800, overplot=0, driver='plplot', colormap=None, colorbar= True, *args): + + self.drvObj = Driver(driver, idfigure, xw, yw, wintitle, overplot, colormap, colorbar) + self.driver = driver self.idfigure = idfigure - self.nframes = nframes - self.wintitle = wintitle self.xw = xw self.yw = yw + self.nframes = nframes + self.wintitle = wintitle + self.colormap = colormap self.overplot = overplot self.colorbar = colorbar - self.colormap = colormap - #esta seccion deberia ser dinamica de acuerdo a len(args) - self.showGraph1 = args[0] - self.showGraph2 = args[1] - - self.drvObj = Driver(driver, idfigure, xw, yw, wintitle, overplot, colorbar, colormap) +# self.showGraph1 = args[0] +# self.showGraph2 = args[1] self.drvObj.driver.setFigure() self.drvObj.driver.setColormap(colormap) + def __openDriver(self): self.drvObj.driver.openDriver() - -# def __openFigure(self): -# nrows, ncolumns = self.getSubplots() -# self.drvObj.driver.openFigure() -# self.drvObj.driver.setTitleFig(title) -# self.drvObj.driver.setSubPlots(nrows, ncolumns) def __initFigure(self): nrows, ncolumns = self.getSubplots() @@ -60,10 +55,12 @@ class Figure: self.drvObj.driver.setSubPlots(nrows, ncolumns) def __isOutOfXRange(self,x): - - if ((x>=self.xmin) and (x=self.xmin) and (x=self.starttime) and (cdatetime.time()