def plot_axes_scaling(self, iabscissa=1):
from matplotlib import pyplot
if not hasattr(self, 'D'):
self.load()
dat = self
if np.max(dat.D[:, 5:]) == np.min(dat.D[:, 5:]):
pyplot.text(0, dat.D[-1, 5],
'all axes scaling values equal to %s'
% str(dat.D[-1, 5]),
verticalalignment='center')
return self # nothing interesting to plot
self._enter_plotting()
pyplot.semilogy(dat.D[:, iabscissa], dat.D[:, 5:], '-b')
# pyplot.hold(True)
pyplot.grid(True)
ax = array(pyplot.axis())
# ax[1] = max(minxend, ax[1])
pyplot.axis(ax)
pyplot.title('Principle Axes Lengths')
# pyplot.xticks(xticklocs)
self._xlabel(iabscissa)
self._finalize_plotting()
return self
评论列表
文章目录