Esempio n. 1
0
 def call():
    with writer.saving(fig, name, 100):
       for i in xrange(self.data.shape[0]):
          if break_tag[0]:
             break
          queue.put(i)
          ax=gPlot.plotKiyoMap(self.data,self.metaDic,fig,i,eval(self.vMax_Txt.get()),eval(self.vMin_Txt.get()))
          writer.grab_frame()
          plt.clf()
Esempio n. 2
0
 def plotFigure(self):
    try:
       self.figAgg_Main.get_tk_widget().delete(self.figAgg_Main._tkphoto)
       self.fig.clf()
       plt.close(self.fig)
    except:
       pass
    try:
       freq=eval(self.freq_Txt.get())
    except:
       print "Don't be stupid"
    if freq>=0 and freq<=256:
       self.ax_Main=gPlot.plotKiyoMap(self.data,self.metaDic,self.fig,round(freq),eval(self.vMax_Txt.get()),eval(self.vMin_Txt.get()))
    else:
       print "Wong Freq"
    if self.Num==0:
       self.addFigure(self.fig)
       self.Num=1
    else:
       self.figAgg_Main.draw()