Skip to content

Commit

Permalink
Merge pull request matplotlib#6807 from anntzer/deprecate-cursorprops
Browse files Browse the repository at this point in the history
API: Deprecate `{get,set}_cursorprops`.
  • Loading branch information
tacaswell authored Jul 23, 2016
2 parents 64ad40b + fb58965 commit 2a7f606
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 2a7f606

Please sign in to comment.