##// END OF EJS Templates
update jroplot_base.py
avaldez -
r1792:800f91ef3d84 isr
parent child
Show More
@@ -305,7 +305,7 class Plot(Operation):
305 305 ax.firsttime = True
306 306 ax.index = 0
307 307 ax.press = None
308 ax.cbar = None
308 #ax.cbar = None
309 309 self.axes.append(ax)
310 310 if self.showprofile:
311 311 cax = self.__add_axes(ax, size=size, pad=pad)
@@ -408,15 +408,15 class Plot(Operation):
408 408 if self.ylabel is not None:
409 409 ax.set_ylabel(self.ylabel)
410 410 if self.showprofile:
411 if self.zlimits is not None:
412 self.zmin, self.zmax = self.zlimits[n]
411 #if self.zlimits is not None:
412 # self.zmin, self.zmax = self.zlimits[n]
413 413 self.pf_axes[n].set_ylim(ymin, ymax)
414 414 self.pf_axes[n].set_xlim(self.zmin, self.zmax)
415 415 self.pf_axes[n].set_xlabel('dB')
416 416 self.pf_axes[n].grid(b=True, axis='x')
417 417 [tick.set_visible(False)
418 418 for tick in self.pf_axes[n].get_yticklabels()]
419 if self.colorbar and ax.cbar == None:
419 if self.colorbar and not(hasattr(ax,'cbar')):
420 420 ax.cbar = plt.colorbar(
421 421 ax.plt, ax=ax, fraction=0.05, pad=0.02, aspect=10)
422 422 ax.cbar.ax.tick_params(labelsize=8)
@@ -532,7 +532,7 class Plot(Operation):
532 532
533 533 figname = os.path.join(
534 534 self.save,
535 #self.save_code,
535 self.save_code,
536 536 '{}_{}.png'.format(
537 537 self.save_code,
538 538 self.getDateTime(self.data.min_time).strftime(
General Comments 0
You need to be logged in to leave comments. Login now