Skip to content

Commit

Permalink
Deprecate {get,set}_cursorprops.
Browse files Browse the repository at this point in the history
Apparently unused and with no effect ever since they were added.
  • Loading branch information
anntzer committed Jul 21, 2016
1 parent a4fdd60 commit fb58965
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/matplotlib/axes/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,8 +545,6 @@ def __init__(self, fig, rect,
self.fmt_xdata = None
self.fmt_ydata = None

self.set_cursor_props((1, 'k')) # set the cursor properties for axes

self._cachedRenderer = None
self.set_navigate(True)
self.set_navigate_mode(None)
Expand Down Expand Up @@ -3666,6 +3664,7 @@ def format_deltas(key, dx, dy):
self.set_xlim(*result.intervalx)
self.set_ylim(*result.intervaly)

@cbook.deprecated("2.1")
def get_cursor_props(self):
"""
Return the cursor propertiess as a (*linewidth*, *color*)
Expand All @@ -3674,6 +3673,7 @@ def get_cursor_props(self):
"""
return self._cursorProps

@cbook.deprecated("2.1")
def set_cursor_props(self, *args):
"""
Set the cursor property as::
Expand Down

0 comments on commit fb58965

Please sign in to comment.