Leaklens

matplotlib__matplotlib-26466

Updating an array passed as the xy parameter to annotate updates the anottation

Verdict: the fix is stated in the issue (Tier A).

Maybe changing: https://github.com/matplotlib/matplotlib/blob/89fa0e43b63512c595387a37bdfd37196ced69be/lib/matplotlib/text.py#L1332 for `self.xy=np.array(xy)` is enough.

The text states the fix: “Maybe changing: https://github.com/matplotlib/matplotlib/blob/89fa0e43b63512c595387a37bdfd37196ced69be/lib/matplotlib/text.py#L1332 for `self.xy=np.array(xy)` is enough.”

All 500 SWE-bench Verified tasks · more matplotlib/matplotlib tasks · How the check works