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

Skip to content

Commit 2a7f606

Browse files
authored
Merge pull request #6807 from anntzer/deprecate-cursorprops
API: Deprecate `{get,set}_cursorprops`.
2 parents 64ad40b + fb58965 commit 2a7f606

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/axes/_base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -545,8 +545,6 @@ def __init__(self, fig, rect,
545545
self.fmt_xdata = None
546546
self.fmt_ydata = None
547547

548-
self.set_cursor_props((1, 'k')) # set the cursor properties for axes
549-
550548
self._cachedRenderer = None
551549
self.set_navigate(True)
552550
self.set_navigate_mode(None)
@@ -3666,6 +3664,7 @@ def format_deltas(key, dx, dy):
36663664
self.set_xlim(*result.intervalx)
36673665
self.set_ylim(*result.intervaly)
36683666

3667+
@cbook.deprecated("2.1")
36693668
def get_cursor_props(self):
36703669
"""
36713670
Return the cursor propertiess as a (*linewidth*, *color*)
@@ -3674,6 +3673,7 @@ def get_cursor_props(self):
36743673
"""
36753674
return self._cursorProps
36763675

3676+
@cbook.deprecated("2.1")
36773677
def set_cursor_props(self, *args):
36783678
"""
36793679
Set the cursor property as::

0 commit comments

Comments
 (0)