##// END OF EJS Templates
fix faraday plots
rflores -
r1733:67f6900b4a62
parent child
Show More
@@ -826,7 +826,7 class SpectrogramPlot(Plot):
826 cmap=plt.get_cmap(self.colormap)
826 cmap=plt.get_cmap(self.colormap)
827 )
827 )
828 else:
828 else:
829 ax.collections.remove(ax.collections[0])
829 ax.plt.remove()
830 ax.plt = ax.pcolormesh(x, y, z[n].T,
830 ax.plt = ax.pcolormesh(x, y, z[n].T,
831 vmin=self.zmin,
831 vmin=self.zmin,
832 vmax=self.zmax,
832 vmax=self.zmax,
@@ -54,7 +54,7 class RTIDPPlot(RTIPlot):
54 data = {}
54 data = {}
55 meta = {}
55 meta = {}
56 data[self.CODE] = dataOut.data_for_RTI_DP
56 data[self.CODE] = dataOut.data_for_RTI_DP
57 data['NRANGE'] = dataOut.NDP
57 data['NRANGE'] = dataOut.NDP
58
58
59 return data, meta
59 return data, meta
60
60
@@ -90,7 +90,7 class RTIDPPlot(RTIPlot):
90 else:
90 else:
91 if self.zlimits is not None:
91 if self.zlimits is not None:
92 self.zmin, self.zmax = self.zlimits[n]
92 self.zmin, self.zmax = self.zlimits[n]
93 ax.collections.remove(ax.collections[0])
93 ax.plt.remove()
94 ax.plt = ax.pcolormesh(x, y, z[n].T * self.factors[n],
94 ax.plt = ax.pcolormesh(x, y, z[n].T * self.factors[n],
95 vmin=self.zmin,
95 vmin=self.zmin,
96 vmax=self.zmax,
96 vmax=self.zmax,
@@ -177,7 +177,7 class RTILPPlot(RTIPlot):
177 else:
177 else:
178 if self.zlimits is not None:
178 if self.zlimits is not None:
179 self.zmin, self.zmax = self.zlimits[n]
179 self.zmin, self.zmax = self.zlimits[n]
180 ax.collections.remove(ax.collections[0])
180 ax.plt.remove()
181 ax.plt = ax.pcolormesh(x, y, z[n].T * self.factors[n],
181 ax.plt = ax.pcolormesh(x, y, z[n].T * self.factors[n],
182 vmin=self.zmin,
182 vmin=self.zmin,
183 vmax=self.zmax,
183 vmax=self.zmax,
@@ -259,7 +259,7 class DenRTIPlot(RTIPlot):
259 else:
259 else:
260 if self.zlimits is not None:
260 if self.zlimits is not None:
261 self.zmin, self.zmax = self.zlimits[n]
261 self.zmin, self.zmax = self.zlimits[n]
262 ax.collections.remove(ax.collections[0])
262 ax.plt.remove()
263 ax.plt = ax.pcolormesh(x, y, z[n].T * self.factors[n],
263 ax.plt = ax.pcolormesh(x, y, z[n].T * self.factors[n],
264 vmin=self.zmin,
264 vmin=self.zmin,
265 vmax=self.zmax,
265 vmax=self.zmax,
@@ -346,7 +346,7 class ETempRTIPlot(RTIPlot):
346 else:
346 else:
347 if self.zlimits is not None:
347 if self.zlimits is not None:
348 self.zmin, self.zmax = self.zlimits[n]
348 self.zmin, self.zmax = self.zlimits[n]
349 ax.collections.remove(ax.collections[0])
349 ax.plt.remove()
350 ax.plt = ax.pcolormesh(x, y, z[n].T * self.factors[n],
350 ax.plt = ax.pcolormesh(x, y, z[n].T * self.factors[n],
351 vmin=self.zmin,
351 vmin=self.zmin,
352 vmax=self.zmax,
352 vmax=self.zmax,
@@ -1048,7 +1048,7 class ACFsPlot(Plot):
1048 ax.plot(BadLag1[i,x_igcej_aux],BadHei1[i,y_igcej_aux],'x',color='red',markersize=2)
1048 ax.plot(BadLag1[i,x_igcej_aux],BadHei1[i,y_igcej_aux],'x',color='red',markersize=2)
1049 ax.plot(BadLag2[i,x_ibad_aux],BadHei2[i,y_ibad_aux],'X',color='red',markersize=2)
1049 ax.plot(BadLag2[i,x_ibad_aux],BadHei2[i,y_ibad_aux],'X',color='red',markersize=2)
1050 ax.yaxis.set_minor_locator(MultipleLocator(15))
1050 ax.yaxis.set_minor_locator(MultipleLocator(15))
1051
1051
1052 class ACFsLPPlot(Plot):
1052 class ACFsLPPlot(Plot):
1053 '''
1053 '''
1054 Written by R. Flores
1054 Written by R. Flores
General Comments 0
You need to be logged in to leave comments. Login now