From fb5896551f5887f4adf60a803c6d57e4fc2e84f1 Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Wed, 20 Jul 2016 23:21:53 -0700 Subject: [PATCH] Deprecate `{get,set}_cursorprops`. Apparently unused and with no effect ever since they were added. --- lib/matplotlib/axes/_base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/matplotlib/axes/_base.py b/lib/matplotlib/axes/_base.py index abe6ab369412..807a0edc9ef4 100644 --- a/lib/matplotlib/axes/_base.py +++ b/lib/matplotlib/axes/_base.py @@ -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) @@ -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*) @@ -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:: pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy