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

Method set_xy1

lib/matplotlib/lines.py:1580–1599  ·  view source on GitHub ↗

Set the *xy1* value of the line. Parameters ---------- xy1 : tuple[float, float] Points for the line to pass through.

(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

1578 return self._slope
1579
1580 def set_xy1(self, *args, **kwargs):
1581 """
1582 Set the *xy1* value of the line.
1583
1584 Parameters
1585 ----------
1586 xy1 : tuple[float, float]
1587 Points for the line to pass through.
1588 """
1589 params = _api.select_matching_signature([
1590 lambda self, x, y: locals(), lambda self, xy1: locals(),
1591 ], self, *args, **kwargs)
1592 if "x" in params:
1593 _api.warn_deprecated("3.10", message=(
1594 "Passing x and y separately to AxLine.set_xy1 is deprecated since "
1595 "%(since)s; pass them as a single tuple instead."))
1596 xy1 = params["x"], params["y"]
1597 else:
1598 xy1 = params["xy1"]
1599 self._xy1 = xy1
1600
1601 def set_xy2(self, *args, **kwargs):
1602 """

Callers 1

test_axline_settersFunction · 0.80

Calls

no outgoing calls

Tested by 1

test_axline_settersFunction · 0.64