|
|
|||||||||||||||||||||||||||||
|
pylab_examples_Examples 92_titles_demo. |
H.Kamifuji . |
matplotlib は、プロットのタイトルを中央に表示し、軸のセットの左側でフラッシュし、軸のセットの右側でフラッシュすることができます。
"""
matplotlib can display plot titles centered, flush with the left side of
a set of axes, and flush with the right side of a set of axes.
"""
import matplotlib.pyplot as plt
plt.plot(range(10))
plt.title('Center Title')
plt.title('Left Title', loc='left')
plt.title('Right Title', loc='right')
plt.show()
|
![]() |
| pylab_examples_Examples code: titles_demo.py |
|