MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / __init__

Method __init__

lib/matplotlib/patches.py:1430–1460  ·  view source on GitHub ↗

Draws an arrow from (*x*, *y*) to (*x* + *dx*, *y* + *dy*). The width of the arrow is scaled by *width*. Parameters ---------- x : float x coordinate of the arrow tail. y : float y coordinate of the arrow tail. dx : fl

(self, x, y, dx, dy, *, width=1.0, **kwargs)

Source from the content-addressed store, hash-verified

1428
1429 @_docstring.interpd
1430 def __init__(self, x, y, dx, dy, *, width=1.0, **kwargs):
1431 """
1432 Draws an arrow from (*x*, *y*) to (*x* + *dx*, *y* + *dy*).
1433 The width of the arrow is scaled by *width*.
1434
1435 Parameters
1436 ----------
1437 x : float
1438 x coordinate of the arrow tail.
1439 y : float
1440 y coordinate of the arrow tail.
1441 dx : float
1442 Arrow length in the x direction.
1443 dy : float
1444 Arrow length in the y direction.
1445 width : float, default: 1
1446 Scale factor for the width of the arrow. With a default value of 1,
1447 the tail width is 0.2 and head width is 0.6.
1448 **kwargs
1449 Keyword arguments control the `Patch` properties:
1450
1451 %(Patch:kwdoc)s
1452
1453 See Also
1454 --------
1455 FancyArrow
1456 Patch that allows independent control of the head and tail
1457 properties.
1458 """
1459 super().__init__(**kwargs)
1460 self.set_data(x, y, dx, dy, width)
1461
1462 def get_path(self):
1463 return self._path

Callers

nothing calls this directly

Calls 2

set_dataMethod · 0.95
__init__Method · 0.45

Tested by

no test coverage detected