@@ -42,8 +42,9 blu_values = matplotlib.pyplot.get_cmap( | |||
|
42 | 42 | 'seismic_r', 20)(numpy.arange(20))[10:15] |
|
43 | 43 | ncmap = matplotlib.colors.LinearSegmentedColormap.from_list( |
|
44 | 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 | 48 | CMAPS = [plt.get_cmap(s) for s in ('jro', 'jet', 'viridis', |
|
48 | 49 | 'plasma', 'inferno', 'Greys', 'seismic', 'bwr', 'coolwarm')] |
|
49 | 50 | |
@@ -457,8 +458,8 class Plot(Operation): | |||
|
457 | 458 | for ax in self.axes+self.pf_axes+self.cb_axes: |
|
458 | 459 | ax.clear() |
|
459 | 460 | ax.firsttime = True |
|
460 | if hasattr(ax, 'cbar') and ax.cbar: | |
|
461 | ax.cbar.remove() | |
|
461 | #if hasattr(ax, 'cbar') and ax.cbar: | |
|
462 | # ax.cbar.remove() | |
|
462 | 463 | |
|
463 | 464 | def __plot(self): |
|
464 | 465 | ''' |
@@ -663,10 +664,9 class Plot(Operation): | |||
|
663 | 664 | tm = getattr(dataOut, self.attr_time) |
|
664 | 665 | if self.data and 'time' in self.xaxis and (tm - self.tmin) >= self.xrange*60*60: |
|
665 | 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 | 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 | 670 | self.data.setup() |
|
671 | 671 | self.clear_figures() |
|
672 | 672 |
General Comments 0
You need to be logged in to leave comments.
Login now