8000 MNT : remove deprecated code from Annotation · tacaswell/matplotlib@402580b · GitHub
[go: up one dir, main page]

Skip to content

Commit 402580b

Browse files
committed
MNT : remove deprecated code from Annotation
Deprecated in PR matplotlib#2351 Merged to master as da6c6b5
1 parent 92d9d16 commit 402580b

File tree

3 files changed

+5
-35
lines changed

3 files changed

+5
-35
lines changed

doc/api/api_changes/code_removal.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,8 @@ matplotlib.delaunay
2222
-------------------
2323
Remove the delaunay triangulation code which is now handled by QHull
2424
via ``matplotlib.tri``
25+
26+
27+
Annotation
28+
----------
29+
Removed ``textcoords`` and ``xytext`` proprieties from Annotation objects.

lib/matplotlib/backends/qt4_compat.py

Lines changed: 0 additions & 11 deletions
This file was deleted.

lib/matplotlib/text.py

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

16651665
return self._draggable
16661666

1667-
@property
1668-
@cbook.deprecated('1.4', message='Use `anncoords` instead',
1669-
name='textcoords', alternative='anncoords')
1670-
def textcoords(self):
1671-
return self.anncoords
1672-
1673-
@textcoords.setter
1674-
@cbook.deprecated('1.4', message='Use `anncoords` instead',
1675-
name='textcoords', alternative='anncoords')
1676-
def textcoords(self, val):
1677-
self.anncoords = val
1678-
1679-
@property
1680-
@cbook.deprecated('1.4', message='Use `xyann` instead',
1681-
name='xytext', alternative='xyann')
1682-
def xytext(self):
1683-
return self.xyann
1684-
1685-
@xytext.setter
1686-
@cbook.deprecated('1.4', message='Use `xyann` instead',
1687-
name='xytext', alternative='xyann')
1688-
def xytext(self, val):
1689-
self.xyann = val
1690-
16911667

16921668
class Annotation(Text, _AnnotationBase):
16931669
"""

0 commit comments

Comments
 (0)
0