@@ -407,7 +407,7 class Plot(Operation): | |||
|
407 | 407 | self.pf_axes[n].grid(b=True, axis='x') |
|
408 | 408 | [tick.set_visible(False) |
|
409 | 409 | for tick in self.pf_axes[n].get_yticklabels()] |
|
410 | if self.colorbar: | |
|
410 | if self.colorbar and not(hasattr(ax, 'cbar')): | |
|
411 | 411 | ax.cbar = plt.colorbar( |
|
412 | 412 | ax.plt, ax=ax, fraction=0.05, pad=0.02, aspect=10) |
|
413 | 413 | ax.cbar.ax.tick_params(labelsize=8) |
@@ -449,8 +449,8 class Plot(Operation): | |||
|
449 | 449 | for ax in self.axes+self.pf_axes+self.cb_axes: |
|
450 | 450 | ax.clear() |
|
451 | 451 | ax.firsttime = True |
|
452 | if hasattr(ax, 'cbar') and ax.cbar: | |
|
453 | ax.cbar.remove() | |
|
452 | #if hasattr(ax, 'cbar') and ax.cbar: | |
|
453 | # ax.cbar.remove() | |
|
454 | 454 | |
|
455 | 455 | def __plot(self): |
|
456 | 456 | ''' |
@@ -652,11 +652,11 class Plot(Operation): | |||
|
652 | 652 | tm = getattr(dataOut, self.attr_time) |
|
653 | 653 | |
|
654 | 654 | if self.data and 'time' in self.xaxis and (tm - self.tmin) >= self.xrange*60*60: |
|
655 | self.clear_figures() | |
|
655 | 656 | self.save_time = tm |
|
656 | self.__plot() | |
|
657 | 657 | self.tmin += self.xrange*60*60 |
|
658 | self.__plot() | |
|
658 | 659 | self.data.setup() |
|
659 | self.clear_figures() | |
|
660 | 660 | |
|
661 | 661 | self.__update(dataOut, tm) |
|
662 | 662 |
General Comments 0
You need to be logged in to leave comments.
Login now