Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix deprecations of *Cursor widget event handlers#24750

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
tacaswell merged 1 commit intomatplotlib:mainfromQuLogic:fix-widget-deprecations
Dec 21, 2022
Merged
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletionslib/matplotlib/widgets.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -1616,7 +1616,7 @@ def __init__(self, ax, horizOn=True, vertOn=True, useblit=False,
self.background = None
self.needclear = False

@_api.deprecated('3.5')
@_api.deprecated('3.7')
def clear(self, event):
"""Internal event handler to clear the cursor."""
self._clear(event)
Expand All@@ -1632,7 +1632,7 @@ def _clear(self, event):
if self.useblit:
self.background = self.canvas.copy_from_bbox(self.ax.bbox)

onmove = _api.deprecate_privatize_attribute('3.5')
onmove = _api.deprecate_privatize_attribute('3.7')

def _onmove(self, event):
"""Internal event handler to draw the cursor when the mouse moves."""
Expand DownExpand Up@@ -1769,7 +1769,7 @@ def disconnect(self):
canvas.mpl_disconnect(cid)
info["cids"].clear()

@_api.deprecated('3.5')
@_api.deprecated('3.7')
def clear(self, event):
"""Clear the cursor."""
if self.ignore(event):
Expand All@@ -1786,7 +1786,7 @@ def _clear(self, event):
for canvas, info in self._canvas_infos.items():
info["background"] = canvas.copy_from_bbox(canvas.figure.bbox)

onmove = _api.deprecate_privatize_attribute('3.5')
onmove = _api.deprecate_privatize_attribute('3.7')

def _onmove(self, event):
if (self.ignore(event)
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp