@@ -1131,21 +1131,42 @@ class Arrow(Patch):
11311131 def __str__ (self ):
11321132 return "Arrow()"
11331133
1134- _path = Path ([
1135- [0.0 , 0.1 ], [0.0 , - 0.1 ],
1136- [0.8 , - 0.1 ], [0.8 , - 0.3 ],
1137- [1.0 , 0.0 ], [0.8 , 0.3 ],
1138- [0.8 , 0.1 ], [0.0 , 0.1 ]],
1139- closed = True )
1134+ _path = Path ([[0.0 , 0.1 ], [0.0 , - 0.1 ],
1135+ [0.8 , - 0.1 ], [0.8 , - 0.3 ],
1136+ [1.0 , 0.0 ], [0.8 , 0.3 ],
1137+ [0.8 , 0.1 ], [0.0 , 0.1 ]],
1138+ closed = True )
11401139
11411140 @docstring .dedent_interpd
11421141 def __init__ (self , x , y , dx , dy , width = 1.0 , ** kwargs ):
11431142 """
1144- Draws an arrow, starting at (*x*, *y*), direction and length
1145- given by (*dx*, *dy*) the width of the arrow is scaled by *width*.
1143+ Draws an arrow from (*x*, *y*) to (*x* + *dx*, *y* + *dy*).
1144+ The width of the arrow is scaled by *width*.
11461145
1147- Valid kwargs are:
1148- %(Patch)s
1146+ Parameters
1147+ ----------
1148+ x : scalar
1149+ x coordinate of the arrow tail
1150+ y : scalar
1151+ y coordinate of the arrow tail
1152+ dx : scalar
1153+ Arrow length in the x direction
1154+ dy : scalar
1155+ Arrow length in the y direction
1156+ width : scalar, optional (default: 1)
1157+ Scale factor for the width of the arrow. With a default value of
1158+ 1, the tail width is 0.2 and head width is 0.6.
1159+ **kwargs :
1160+ Keyword arguments control the :class:`~matplotlib.patches.Patch`
1161+ properties:
1162+
1163+ %(Patch)s
1164+
1165+ See Also
1166+ --------
1167+ :class:`FancyArrow` :
1168+ Patch that allows independent control of the head and tail
1169+ properties
11491170 """
11501171 Patch .__init__ (self , ** kwargs )
11511172 L = np .hypot (dx , dy )
0 commit comments