##// END OF EJS Templates
Se modifican 3 metodos: format,clear_figures and run, revisar correo de Joab, bug recorte de graficos en Signal Chain
Alexander Valdez -
r1659:fed278fd2497
parent child
Show More
@@ -407,7 +407,7 class Plot(Operation):
407 self.pf_axes[n].grid(b=True, axis='x')
407 self.pf_axes[n].grid(b=True, axis='x')
408 [tick.set_visible(False)
408 [tick.set_visible(False)
409 for tick in self.pf_axes[n].get_yticklabels()]
409 for tick in self.pf_axes[n].get_yticklabels()]
410 if self.colorbar:
410 if self.colorbar and not(hasattr(ax, 'cbar')):
411 ax.cbar = plt.colorbar(
411 ax.cbar = plt.colorbar(
412 ax.plt, ax=ax, fraction=0.05, pad=0.02, aspect=10)
412 ax.plt, ax=ax, fraction=0.05, pad=0.02, aspect=10)
413 ax.cbar.ax.tick_params(labelsize=8)
413 ax.cbar.ax.tick_params(labelsize=8)
@@ -449,8 +449,8 class Plot(Operation):
449 for ax in self.axes+self.pf_axes+self.cb_axes:
449 for ax in self.axes+self.pf_axes+self.cb_axes:
450 ax.clear()
450 ax.clear()
451 ax.firsttime = True
451 ax.firsttime = True
452 if hasattr(ax, 'cbar') and ax.cbar:
452 #if hasattr(ax, 'cbar') and ax.cbar:
453 ax.cbar.remove()
453 # ax.cbar.remove()
454
454
455 def __plot(self):
455 def __plot(self):
456 '''
456 '''
@@ -652,11 +652,11 class Plot(Operation):
652 tm = getattr(dataOut, self.attr_time)
652 tm = getattr(dataOut, self.attr_time)
653
653
654 if self.data and 'time' in self.xaxis and (tm - self.tmin) >= self.xrange*60*60:
654 if self.data and 'time' in self.xaxis and (tm - self.tmin) >= self.xrange*60*60:
655 self.clear_figures()
655 self.save_time = tm
656 self.save_time = tm
656 self.__plot()
657 self.tmin += self.xrange*60*60
657 self.tmin += self.xrange*60*60
658 self.__plot()
658 self.data.setup()
659 self.data.setup()
659 self.clear_figures()
660
660
661 self.__update(dataOut, tm)
661 self.__update(dataOut, tm)
662
662
General Comments 0
You need to be logged in to leave comments. Login now