You are reading an old version of the documentation (v1.4.0). For the latest version see https://matplotlib.org/stable/
matplotlib

Previous topic

pylab_examples example code: arrow_demo.py

Next topic

pylab_examples example code: aspect_loglog.py

This Page

pylab_examples example code: arrow_simple_demo.pyΒΆ

(Source code, png, hires.png, pdf)

../../_images/arrow_simple_demo.png
import matplotlib.pyplot as plt

ax = plt.axes()
ax.arrow(0, 0, 0.5, 0.5, head_width=0.05, head_length=0.1, fc='k', ec='k')
plt.show()

Keywords: python, matplotlib, pylab, example, codex (see Search examples)