@@ -1662,6 +1662,10 @@ class Annotation(Text, _AnnotationBase):
1662
1662
in the figure, such as :class:`~matplotlib.figure.Figure`,
1663
1663
:class:`~matplotlib.axes.Axes`,
1664
1664
:class:`~matplotlib.patches.Rectangle`, etc., easier.
1665
+
1666
+ Annotate the *x*, *y* point *xy* with text *s* at *x*, *y*
1667
+ location *xytext*. (If *xytext* = *None*, defaults to *xy*,
1668
+ and if *textcoords* = *None*, defaults to *xycoords*).
1665
1669
"""
1666
1670
def __str__ (self ):
1667
1671
return "Annotation(%g,%g,%s)" % (self .xy [0 ],
@@ -1677,18 +1681,15 @@ def __init__(self, s, xy,
1677
1681
annotation_clip = None ,
1678
1682
** kwargs ):
1679
1683
"""
1680
- Annotate the *x*, *y* point *xy* with text *s* at *x*, *y*
1681
- location *xytext*. (If *xytext* = *None*, defaults to *xy*,
1682
- and if *textcoords* = *None*, defaults to *xycoords*).
1683
-
1684
1684
*arrowprops*, if not *None*, is a dictionary of line properties
1685
1685
(see :class:`matplotlib.lines.Line2D`) for the arrow that connects
1686
1686
annotation to the point.
1687
1687
1688
- If the dictionary has a key *arrowstyle*, a FancyArrowPatch
1689
- instance is created with the given dictionary and is
1690
- drawn. Otherwise, a YAArow patch instance is created and
1691
- drawn. Valid keys for YAArow are
1688
+ If the dictionary has a key *arrowstyle*, a
1689
+ `~matplotlib.patches.FancyArrowPatch` instance is created with
1690
+ the given dictionary and is drawn. Otherwise, a
1691
+ `~matplotlib.patches.YAArrow` patch instance is created and
1692
+ drawn. Valid keys for `~matplotlib.patches.YAArrow` are:
1692
1693
1693
1694
1694
1695
========= ===========================================================
@@ -1707,7 +1708,7 @@ def __init__(self, s, xy,
1707
1708
========= ===========================================================
1708
1709
1709
1710
1710
- Valid keys for FancyArrowPatch are
1711
+ Valid keys for `~matplotlib.patches. FancyArrowPatch` are:
1711
1712
1712
1713
1713
1714
=============== ======================================================
@@ -1727,7 +1728,8 @@ def __init__(self, s, xy,
1727
1728
1728
1729
1729
1730
*xycoords* and *textcoords* are strings that indicate the
1730
- coordinates of *xy* and *xytext*.
1731
+ coordinates of *xy* and *xytext*, and may be one of the
1732
+ following values:
1731
1733
1732
1734
================= ===================================================
1733
1735
Property Description
@@ -1763,18 +1765,16 @@ def __init__(self, s, xy,
1763
1765
:class:`~matplotlib.artist.Artist`. See
1764
1766
:ref:`plotting-guide-annotation` for more details.
1765
1767
1766
-
1767
1768
The *annotation_clip* attribute controls the visibility of the
1768
- annotation when it goes outside the axes area. If True, the
1769
+ annotation when it goes outside the axes area. If ` True` , the
1769
1770
annotation will only be drawn when the *xy* is inside the
1770
- axes. If False, the annotation will always be drawn regardless
1771
- of its position. The default is * None* , which behave as True
1772
- only if *xycoords* is"data".
1771
+ axes. If ` False` , the annotation will always be drawn
1772
+ regardless of its position. The default is ` None` , which
1773
+ behave as `True` only if *xycoords* is "data".
1773
1774
1774
- Additional kwargs are Text properties:
1775
+ Additional kwargs are `~matplotlib.text. Text` properties:
1775
1776
1776
1777
%(Text)s
1777
-
1778
1778
"""
1779
1779
1780
1780
_AnnotationBase .__init__ (self ,
0 commit comments