<divid="unreleased-message"> You are reading an old version of the documentation (v1.4.1). For the latest version see <ahref="/stable/">https://matplotlib.org/stable/</a></div>
to make annotations easy. In an annotation, there are two points to
consider: the location being annotated represented by the argument
<codeclass="docutils literal"><spanclass="pre">xy</span></code> and the location of the text <codeclass="docutils literal"><spanclass="pre">xytext</span></code>. Both of these
arguments are <codeclass="docutils literal"><spanclass="pre">(x,y)</span></code> tuples.</p>
<p>In this example, both the <codeclass="docutils literal"><spanclass="pre">xy</span></code> (arrow tip) and <codeclass="docutils literal"><spanclass="pre">xytext</span></code> locations
(text location) are in data coordinates. There are a variety of other
coordinate systems one can choose – you can specify the coordinate
system of <codeclass="docutils literal"><spanclass="pre">xy</span></code> and <codeclass="docutils literal"><spanclass="pre">xytext</span></code> with one of the following strings for
<codeclass="docutils literal"><spanclass="pre">xycoords</span></code> and <codeclass="docutils literal"><spanclass="pre">textcoords</span></code> (default is ‘data’)</p>
keyword args like <codeclass="docutils literal"><spanclass="pre">horizontalalignment</span></code>, <codeclass="docutils literal"><spanclass="pre">verticalalignment</span></code> and
<p>For more on all the wild and wonderful things you can do with
annotations, including fancy arrows, see <aclass="reference internal" href="annotations_guide.html#plotting-guide-annotation"><em>Annotating Axes</em></a>
and <aclass="reference internal" href="../examples/pylab_examples/annotation_demo.html#pylab-examples-annotation-demo"><em>pylab_examples example code: annotation_demo.py</em></a>.</p>