##// 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,
@@ -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,
General Comments 0
You need to be logged in to leave comments. Login now