Esempio n. 1
0
 def plotGene(self):
     # GRAPHIQUES :
     timeLength=24
     if self.echelle==1:
         timeLength=24*365
     elif self.echelle==2:
         timeLength=24*30
     elif self.echelle==3:
         timeLength=24*7
     elif self.echelle==4:
         timeLenght=24
     a=0
     b=self.cptConf
     if(timeLength<self.cptConf):
         a=self.cptConf-timeLength
     self.Egraph[0].mplwidget.axes.clear()
     self.Egraph[0].mplwidget.axes.set_title(u"Facteur de gêne total")
     self.Egraph[0].mplwidget.axes.set_xlabel(u"Temps (h)")
     self.Egraph[0].mplwidget.axes.set_ylabel(u"Gêne")
     self.Egraph[0].mplwidget.axes.set_xlim(self.tps[a],self.tps[b])
     self.Egraph[0].mplwidget.axes.plot(self.tps[a:b],self.Gg1y[a:b])
     hmax=1*len(self.mat[0][0])
     self.Egraph[0].mplwidget.axes.set_ylim(0,hmax)
     self.Egraph[0].mplwidget.axes.figure.canvas.draw()
     # INFOS TEXTES
     for i in range(len(self.EGene)):
         nom=self.mat[0][0][i][0]
         self.EGene[i].setText("\t"+nom+" : "+str(fdr.recupGeneFinale(self.mat[0],nom)))
Esempio n. 2
0
 def ajGeneTot(self):
     self.Gg1y=[]
     for k in range(len(self.tps)):
         c=0
         if(self.tpsEff[k]==1):
             for i in self.mat[0][0]:
                 c+=fdr.recupGeneFinale(self.mat[k],i[0])
         self.Gg1y.append(c)