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

Skip to content

Commit 310cab1

Browse files
committed
MNT : remove deprecated code from Annotation
Deprecated in PR #2351 Merged to master as da6c6b5
1 parent 48b8e6b commit 310cab1

File tree

2 files changed

+5
-24
lines changed

2 files changed

+5
-24
lines changed

doc/api/api_changes/code_removal.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,8 @@ which takes care of ensuring the coupled changes are also made to the Axes objec
1515
finance.py
1616
----------
1717
Removed functions with ambiguous argument order from finance.py
18+
19+
20+
Annotation
21+
----------
22+
Removed ``textcoords`` and ``xytext`` proprieties from Annotation objects.

lib/matplotlib/text.py

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1723,30 +1723,6 @@ def draggable(self, state=None, use_blit=False):
17231723

17241724
return self._draggable
17251725

1726-
@property
1727-
@cbook.deprecated('1.4', message='Use `anncoords` instead',
1728-
name='textcoords', alternative='anncoords')
1729-
def textcoords(self):
1730-
return self.anncoords
1731-
1732-
@textcoords.setter
1733-
@cbook.deprecated('1.4', message='Use `anncoords` instead',
1734-
name='textcoords', alternative='anncoords')
1735-
def textcoords(self, val):
1736-
self.anncoords = val
1737-
1738-
@property
1739-
@cbook.deprecated('1.4', message='Use `xyann` instead',
1740-
name='xytext', alternative='xyann')
1741-
def xytext(self):
1742-
return self.xyann
1743-
1744-
@xytext.setter
1745-
@cbook.deprecated('1.4', message='Use `xyann` instead',
1746-
name='xytext', alternative='xyann')
1747-
def xytext(self, val):
1748-
self.xyann = val
1749-
17501726

17511727
class Annotation(Text, _AnnotationBase):
17521728
"""

0 commit comments

Comments
 (0)