Axes

この例で matplotlib の axes を配置するいろいろな axes コマンドを示します。

../../../_images/plot_axes-2_1.png

Python source code: plot_axes-2.py

import matplotlib.pyplot as plt
plt.axes([.1, .1, .5, .5])
plt.xticks(())
plt.yticks(())
plt.text(0.1, 0.1, 'axes([0.1, 0.1, .8, .8])', ha='left', va='center',
size=16, alpha=.5)
plt.axes([.2, .2, .5, .5])
plt.xticks(())
plt.yticks(())
plt.text(0.1, 0.1, 'axes([0.2, 0.2, .5, .5])', ha='left', va='center',
size=16, alpha=.5)
plt.axes([0.3, 0.3, .5, .5])
plt.xticks(())
plt.yticks(())
plt.text(0.1, 0.1, 'axes([0.3, 0.3, .5, .5])', ha='left', va='center',
size=16, alpha=.5)
plt.axes([.4, .4, .5, .5])
plt.xticks(())
plt.yticks(())
plt.text(0.1, 0.1, 'axes([0.4, 0.4, .5, .5])', ha='left', va='center',
size=16, alpha=.5)
plt.show()

Total running time of the example: 0.18 seconds ( 0 minutes 0.18 seconds)