From 60f9ebea7e3b3a09b5bd62505b7aa40c3de310df 2023-02-16 22:41:03 From: joabAM Date: 2023-02-16 22:41:03 Subject: [PATCH] RTI plots only last channel with 'Time' label --- diff --git a/schainpy/model/graphics/jroplot_spectra.py b/schainpy/model/graphics/jroplot_spectra.py index fd922ed..ab69a0e 100644 --- a/schainpy/model/graphics/jroplot_spectra.py +++ b/schainpy/model/graphics/jroplot_spectra.py @@ -274,7 +274,7 @@ class RTIPlot(Plot): self.nrows = len(self.data.channels) self.nplots = len(self.data.channels) self.ylabel = 'Range [km]' - self.xlabel = 'Time' + #self.xlabel = 'Time' self.cb_label = 'dB' self.plots_adjust.update({'hspace':0.8, 'left': 0.08, 'bottom': 0.2, 'right':0.94}) self.titles = ['{} Channel {}'.format( @@ -342,6 +342,8 @@ class RTIPlot(Plot): data = self.data[-1] if ax.firsttime: + if (n+1) == len(self.channelList): + ax.set_xlabel('Time') ax.plt = ax.pcolormesh(x, y, z[n].T, vmin=self.zmin, vmax=self.zmax, @@ -380,7 +382,7 @@ class CoherencePlot(RTIPlot): self.nrows = len(self.data.pairs) self.nplots = len(self.data.pairs) self.ylabel = 'Range [km]' - self.xlabel = 'Time' + #self.xlabel = 'Time' self.plots_adjust.update({'hspace':0.6, 'left': 0.1, 'bottom': 0.1,'right':0.95}) if self.CODE == 'coh': self.cb_label = '' @@ -419,6 +421,8 @@ class CoherencePlot(RTIPlot): self.zmin = self.zmin if self.zmin else numpy.min(self.z) self.zmax = self.zmax if self.zmax else numpy.max(self.z) if ax.firsttime: + if (n+1) == len(self.channelList): + ax.set_xlabel('Time') ax.plt = ax.pcolormesh(x, y, z[n].T, vmin=self.zmin, vmax=self.zmax, @@ -1041,7 +1045,7 @@ class NoiselessRTIPlot(RTIPlot): self.nrows = len(self.data.channels) self.nplots = len(self.data.channels) self.ylabel = 'Range [km]' - self.xlabel = 'Time' + #self.xlabel = 'Time' self.cb_label = 'dB' self.plots_adjust.update({'hspace':0.8, 'left': 0.08, 'bottom': 0.2, 'right':0.94}) self.titles = ['{} Channel {}'.format( @@ -1119,6 +1123,8 @@ class NoiselessRTIPlot(RTIPlot): self.zmax = self.zmax if self.zmax else numpy.max(self.z) data = self.data[-1] if ax.firsttime: + if (n+1) == len(self.channelList): + ax.set_xlabel('Time') ax.plt = ax.pcolormesh(x, y, z[n].T, vmin=self.zmin, vmax=self.zmax,