描画に応じてキャンパスを無視して出力する。bbox_inches="tight"
plt.savefig("result.png", bbox_inches="tight")
- 長方形を描画 matplotlib.patches.Rectangle
- アスペクト比を調整 matplotlib.axes.Axes.set_aspect
- 矢印を描画 matplotlib.pyplot.quiver
描画に応じてキャンパスを無視して出力する。bbox_inches="tight"
plt.savefig("result.png", bbox_inches="tight")