Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 521b60a

Browse files
anntzertimhoffm
authored andcommitted
Add explicit getters and setters for Annotation.anncoords. (#12144)
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.
1 parent 0cce49b commit 521b60a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/matplotlib/text.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2209,6 +2209,9 @@ def anncoords(self):
22092209
def anncoords(self, coords):
22102210
self._textcoords = coords
22112211

2212+
get_anncoords = anncoords.fget
2213+
set_anncoords = anncoords.fset
2214+
22122215
def set_figure(self, fig):
22132216
if self.arrow_patch is not None:
22142217
self.arrow_patch.set_figure(fig)

0 commit comments

Comments
 (0)