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