##// END OF EJS Templates
RTI plots only last channel with 'Time' label
joabAM -
r1592:60f9ebea7e3b
parent child
Show More
@@ -274,7 +274,7 class RTIPlot(Plot):
274 274 self.nrows = len(self.data.channels)
275 275 self.nplots = len(self.data.channels)
276 276 self.ylabel = 'Range [km]'
277 self.xlabel = 'Time'
277 #self.xlabel = 'Time'
278 278 self.cb_label = 'dB'
279 279 self.plots_adjust.update({'hspace':0.8, 'left': 0.08, 'bottom': 0.2, 'right':0.94})
280 280 self.titles = ['{} Channel {}'.format(
@@ -342,6 +342,8 class RTIPlot(Plot):
342 342 data = self.data[-1]
343 343
344 344 if ax.firsttime:
345 if (n+1) == len(self.channelList):
346 ax.set_xlabel('Time')
345 347 ax.plt = ax.pcolormesh(x, y, z[n].T,
346 348 vmin=self.zmin,
347 349 vmax=self.zmax,
@@ -380,7 +382,7 class CoherencePlot(RTIPlot):
380 382 self.nrows = len(self.data.pairs)
381 383 self.nplots = len(self.data.pairs)
382 384 self.ylabel = 'Range [km]'
383 self.xlabel = 'Time'
385 #self.xlabel = 'Time'
384 386 self.plots_adjust.update({'hspace':0.6, 'left': 0.1, 'bottom': 0.1,'right':0.95})
385 387 if self.CODE == 'coh':
386 388 self.cb_label = ''
@@ -419,6 +421,8 class CoherencePlot(RTIPlot):
419 421 self.zmin = self.zmin if self.zmin else numpy.min(self.z)
420 422 self.zmax = self.zmax if self.zmax else numpy.max(self.z)
421 423 if ax.firsttime:
424 if (n+1) == len(self.channelList):
425 ax.set_xlabel('Time')
422 426 ax.plt = ax.pcolormesh(x, y, z[n].T,
423 427 vmin=self.zmin,
424 428 vmax=self.zmax,
@@ -1041,7 +1045,7 class NoiselessRTIPlot(RTIPlot):
1041 1045 self.nrows = len(self.data.channels)
1042 1046 self.nplots = len(self.data.channels)
1043 1047 self.ylabel = 'Range [km]'
1044 self.xlabel = 'Time'
1048 #self.xlabel = 'Time'
1045 1049 self.cb_label = 'dB'
1046 1050 self.plots_adjust.update({'hspace':0.8, 'left': 0.08, 'bottom': 0.2, 'right':0.94})
1047 1051 self.titles = ['{} Channel {}'.format(
@@ -1119,6 +1123,8 class NoiselessRTIPlot(RTIPlot):
1119 1123 self.zmax = self.zmax if self.zmax else numpy.max(self.z)
1120 1124 data = self.data[-1]
1121 1125 if ax.firsttime:
1126 if (n+1) == len(self.channelList):
1127 ax.set_xlabel('Time')
1122 1128 ax.plt = ax.pcolormesh(x, y, z[n].T,
1123 1129 vmin=self.zmin,
1124 1130 vmax=self.zmax,
General Comments 0
You need to be logged in to leave comments. Login now