diff --git a/schainpy/model/graphics/jroplot_base.py b/schainpy/model/graphics/jroplot_base.py index e5b7128..8337cde 100644 --- a/schainpy/model/graphics/jroplot_base.py +++ b/schainpy/model/graphics/jroplot_base.py @@ -305,7 +305,7 @@ class Plot(Operation): ax.firsttime = True ax.index = 0 ax.press = None - ax.cbar = None + #ax.cbar = None self.axes.append(ax) if self.showprofile: cax = self.__add_axes(ax, size=size, pad=pad) @@ -408,15 +408,15 @@ class Plot(Operation): if self.ylabel is not None: ax.set_ylabel(self.ylabel) if self.showprofile: - if self.zlimits is not None: - self.zmin, self.zmax = self.zlimits[n] + #if self.zlimits is not None: + # self.zmin, self.zmax = self.zlimits[n] self.pf_axes[n].set_ylim(ymin, ymax) self.pf_axes[n].set_xlim(self.zmin, self.zmax) self.pf_axes[n].set_xlabel('dB') self.pf_axes[n].grid(b=True, axis='x') [tick.set_visible(False) for tick in self.pf_axes[n].get_yticklabels()] - if self.colorbar and ax.cbar == None: + if self.colorbar and not(hasattr(ax,'cbar')): ax.cbar = plt.colorbar( ax.plt, ax=ax, fraction=0.05, pad=0.02, aspect=10) ax.cbar.ax.tick_params(labelsize=8) @@ -532,7 +532,7 @@ class Plot(Operation): figname = os.path.join( self.save, - #self.save_code, + self.save_code, '{}_{}.png'.format( self.save_code, self.getDateTime(self.data.min_time).strftime(