##// END OF EJS Templates
-Se modificó el atributo nChannels de la clase JROData y derivadas por la propiedad nChannels (llamada a la funcion self.getNChannels)...
-Se modificó el atributo nChannels de la clase JROData y derivadas por la propiedad nChannels (llamada a la funcion self.getNChannels) -Se modificó el atributo channelIndexList de la clase JROData y derivadas por la propiedad channelIndexList (llamada a la funcion self.getChannelIndexList) -Se eliminó todas las asignaciones de valor de 'nChannels' y 'channelIndexList' de los obejtos del tipo JROData y derivados (ahora no son atributos sino que se modifican dinamicante a partir de 'channelList') -Se modificó el metodo selectChannels de la clase VoltageProc y SpectraProc para que acepte como atributo la lista de canales y no la lista de indices de canales. -Se modificó el test del controlador para probar estas modificaciones

File last commit:

r197:77188df611db
r200:ac28b7810bcd
Show More
figure.py
84 lines | 2.5 KiB | text/x-python | PythonLexer
Daniel Valdez
Se agrega el folder "graphics" que contiene figure.py y mpldriver.py...
r190 import mpldriver
class Figure:
axesList = None
Daniel Valdez
En graphics:...
r192 width = None
height = None
Daniel Valdez
Se agrega el folder "graphics" que contiene figure.py y mpldriver.py...
r190 def __init__(self):
pass
def init(self, idfigure, wintitle, width, height, nplots):
self.idfigure = idfigure
self.wintitle = wintitle
self.width = width
self.height = height
self.nplots = nplots
Daniel Valdez
En esta version se ha implementado la clase para ploteo de espectros, a este grafico aun le falta agregar el perfil de potencia para cada canal.
r196 self.fig = mpldriver.init(idfigure, wintitle, width, height)
Daniel Valdez
Se agrega el folder "graphics" que contiene figure.py y mpldriver.py...
r190
self.axesList = []
def setTitle(self, title):
mpldriver.setTitle(self.idfigure, title)
Daniel Valdez
En esta version se ha implementado la clase para ploteo de espectros, a este grafico aun le falta agregar el perfil de potencia para cada canal.
r196 def setWinTitle(self,title):
mpldriver.setWinTitle(fig=self.fig, title=title)
Daniel Valdez
Se agrega el folder "graphics" que contiene figure.py y mpldriver.py...
r190 def setTextFromAxes(self, title):
mpldriver.setTextFromAxes(self.idfigure, self.axesList[0].ax, title)
def makeAxes(self, nrow, ncol, xpos, ypos, colspan, rowspan):
ax = mpldriver.makeAxes(self.idfigure, nrow, ncol, xpos, ypos, colspan, rowspan)
axesObj = Axes(ax)
self.axesList.append(axesObj)
def draw(self):
mpldriver.draw(self.idfigure)
def run(self):
pass
class Axes:
firsttime = None
ax = None
Daniel Valdez
En graphics:...
r192 mesh = None
Daniel Valdez
Se agrega el folder "graphics" que contiene figure.py y mpldriver.py...
r190
def __init__(self, ax):
self.firsttime = True
self.ax = ax
Daniel Valdez
En graphics:...
r192 self.mesh = None
Daniel Valdez
Se agrega el folder "graphics" que contiene figure.py y mpldriver.py...
r190
def pline(self, x, y, xmin, xmax, ymin, ymax, xlabel, ylabel, title):
mpldriver.pline(ax=self.ax,
x=x,
y=y,
xmin=xmin,
xmax=xmax,
ymin=ymin,
ymax=ymax,
xlabel=xlabel,
ylabel=ylabel,
title=title,
firsttime=self.firsttime)
self.firsttime = False
Daniel Valdez
En graphics:...
r192 def pcolor(self, x, y, z, xmin, xmax, ymin, ymax, zmin, zmax, xlabel, ylabel, title):
meshfromaxes=mpldriver.pcolor(ax=self.ax,
x=x,
y=y,
z=z,
xmin=xmin,
xmax=xmax,
ymin=ymin,
ymax=ymax,
zmin=zmin,
zmax=zmax,
xlabel=xlabel,
ylabel=ylabel,
title=title,
firsttime=self.firsttime,
mesh=self.mesh)
self.mesh = meshfromaxes
self.firsttime = False