8000 Deprecate FigureCanvasBase.draw_cursor. · matplotlib/matplotlib@75ee248 · GitHub
[go: up one dir, main page]

Skip to content

Commit 75ee248

Browse files
committed
Deprecate FigureCanvasBase.draw_cursor.
per changelog entry.
1 parent 0ac953d commit 75ee248

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Deprecations
2+
````````````
3+
4+
``FigureCanvasBase.draw_cursor`` (which has never done anything and has never
5+
been overridden in any backend) is deprecated.

lib/matplotlib/backend_bases.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1902,6 +1902,7 @@ def draw_idle(self, *args, **kwargs):
19021902
with self._idle_draw_cntx():
19031903
self.draw(*args, **kwargs)
19041904

1905+
@cbook.deprecated("3.2")
19051906
def draw_cursor(self, event):
19061907
"""
19071908
Draw a cursor in the event.axes if inaxes is not None. Use

0 commit comments

Comments
 (0)
0