.. _sphx_glr_gallery_text_labels_and_annotations_arrow_simple_demo.py: ================= Arrow Simple Demo ================= .. image:: /gallery/text_labels_and_annotations/images/sphx_glr_arrow_simple_demo_001.png :align: center .. code-block:: python 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() .. only :: html .. container:: sphx-glr-footer :class: sphx-glr-footer-example .. container:: binder-badge .. image:: https://static.mybinder.org/badge.svg :target: https://mybinder.org/v2/gh/choldgraf/matplotlib/gh-pages?filepath=_downloads/arrow_simple_demo.ipynb :width: 150 px .. container:: sphx-glr-download :download:`Download Python source code: arrow_simple_demo.py ` .. container:: sphx-glr-download :download:`Download Jupyter notebook: arrow_simple_demo.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_