Skip to content

Commit 63768c1

Browse files
authored
Merge pull request #14083 from anntzer/draw_cursor
Deprecate FigureCanvasBase.draw_cursor.
2 parents de957a9 + 75ee248 commit 63768c1

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)