From 4a7efefa7dd8d55764eb5b5373e96dfba8f9b9c8 Mon Sep 17 00:00:00 2001 From: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com> Date: Sun, 17 Dec 2023 20:59:31 +0100 Subject: [PATCH] Backport PR #27534: Clarify AxLine Params --- lib/matplotlib/lines.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/matplotlib/lines.py b/lib/matplotlib/lines.py index 92d55a3fe6ae..9bc058f92132 100644 --- a/lib/matplotlib/lines.py +++ b/lib/matplotlib/lines.py @@ -1478,9 +1478,10 @@ def __init__(self, xy1, xy2, slope, **kwargs): The first set of (x, y) coordinates for the line to pass through. xy2 : (float, float) or None The second set of (x, y) coordinates for the line to pass through. - Either *xy2* or *slope* has to be given. + Both *xy2* and *slope* must be passed, but one of them must be None. slope : float or None - The slope of the line. Either *xy2* or *slope* has to be given. + The slope of the line. Both *xy2* and *slope* must be passed, but one of + them must be None. """ super().__init__([0, 1], [0, 1], **kwargs)