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