Skip to content

Commit

Permalink
MNT : remove deprecated code from Annocation
Browse files Browse the repository at this point in the history
Deprecated in PR matplotlib#2351

Merged to master as da6c6b5
  • Loading branch information
tacaswell committed Jan 10, 2015
1 parent 92d9d16 commit 9ea9159
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 35 deletions.
5 changes: 5 additions & 0 deletions doc/api/api_changes/code_removal.rst
Expand Up @@ -22,3 +22,8 @@ matplotlib.delaunay
-------------------
Remove the delaunay triangulation code which is now handled by QHull
via ``matplotlib.tri``


Annotation
----------
Removed ``textcoords`` and ``xytext`` proprieties from Annotation objects.
11 changes: 0 additions & 11 deletions lib/matplotlib/backends/qt4_compat.py

This file was deleted.

24 changes: 0 additions & 24 deletions lib/matplotlib/text.py
Expand Up @@ -1664,30 +1664,6 @@ def draggable(self, state=None, use_blit=False):

return self._draggable

@property
@cbook.deprecated('1.4', message='Use `anncoords` instead',
name='textcoords', alternative='anncoords')
def textcoords(self):
return self.anncoords

@textcoords.setter
@cbook.deprecated('1.4', message='Use `anncoords` instead',
name='textcoords', alternative='anncoords')
def textcoords(self, val):
self.anncoords = val

@property
@cbook.deprecated('1.4', message='Use `xyann` instead',
name='xytext', alternative='xyann')
def xytext(self):
return self.xyann

@xytext.setter
@cbook.deprecated('1.4', message='Use `xyann` instead',
name='xytext', alternative='xyann')
def xytext(self, val):
self.xyann = val


class Annotation(Text, _AnnotationBase):
"""
Expand Down

0 comments on commit 9ea9159

Please sign in to comment.