From 83856514d472a1e9aee21f0b2ef635673ea4c893 Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Mon, 17 Sep 2018 18:30:39 +0200 Subject: [PATCH] Add explicit getters and setters for Annotation.anncoords. While we may, in some distant future, move to properties everywhere, right now providing getters and setters allows for uniform code for touching Artist properties. --- lib/matplotlib/text.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/matplotlib/text.py b/lib/matplotlib/text.py index d5b117f54086..3c1fb79612f8 100644 --- a/lib/matplotlib/text.py +++ b/lib/matplotlib/text.py @@ -2209,6 +2209,9 @@ def anncoords(self): def anncoords(self, coords): self._textcoords = coords + get_anncoords = anncoords.fget + set_anncoords = anncoords.fset + def set_figure(self, fig): if self.arrow_patch is not None: self.arrow_patch.set_figure(fig)