##// END OF EJS Templates
fix line 461 y 665
avaldez -
r1791:e4984c469c9f isr
parent child
Show More
@@ -42,8 +42,9 blu_values = matplotlib.pyplot.get_cmap(
42 'seismic_r', 20)(numpy.arange(20))[10:15]
42 'seismic_r', 20)(numpy.arange(20))[10:15]
43 ncmap = matplotlib.colors.LinearSegmentedColormap.from_list(
43 ncmap = matplotlib.colors.LinearSegmentedColormap.from_list(
44 'jro', numpy.vstack((blu_values, jet_values)))
44 'jro', numpy.vstack((blu_values, jet_values)))
45 matplotlib.pyplot.register_cmap(cmap=ncmap)
46
45
46 matplotlib.pyplot.register_cmap(cmap=ncmap)
47 #matplotlib.register_cmap(cmap=ncmap)
47 CMAPS = [plt.get_cmap(s) for s in ('jro', 'jet', 'viridis',
48 CMAPS = [plt.get_cmap(s) for s in ('jro', 'jet', 'viridis',
48 'plasma', 'inferno', 'Greys', 'seismic', 'bwr', 'coolwarm')]
49 'plasma', 'inferno', 'Greys', 'seismic', 'bwr', 'coolwarm')]
49
50
@@ -457,8 +458,8 class Plot(Operation):
457 for ax in self.axes+self.pf_axes+self.cb_axes:
458 for ax in self.axes+self.pf_axes+self.cb_axes:
458 ax.clear()
459 ax.clear()
459 ax.firsttime = True
460 ax.firsttime = True
460 if hasattr(ax, 'cbar') and ax.cbar:
461 #if hasattr(ax, 'cbar') and ax.cbar:
461 ax.cbar.remove()
462 # ax.cbar.remove()
462
463
463 def __plot(self):
464 def __plot(self):
464 '''
465 '''
@@ -663,10 +664,9 class Plot(Operation):
663 tm = getattr(dataOut, self.attr_time)
664 tm = getattr(dataOut, self.attr_time)
664 if self.data and 'time' in self.xaxis and (tm - self.tmin) >= self.xrange*60*60:
665 if self.data and 'time' in self.xaxis and (tm - self.tmin) >= self.xrange*60*60:
665 self.save_time = tm
666 self.save_time = tm
667 self.tmin += self.xrange*60*60 #Modified by R. Flores
668 #self.tmin += 24*60*60 #Modified by R. Flores
666 self.__plot()
669 self.__plot()
667 #self.tmin += self.xrange*60*60 #Modified by R. Flores
668 self.tmin += 24*60*60 #Modified by R. Flores
669
670 self.data.setup()
670 self.data.setup()
671 self.clear_figures()
671 self.clear_figures()
672
672
General Comments 0
You need to be logged in to leave comments. Login now