Skip to content

[MNT]: in class cursor,when the mouse moves out of the ax, redrawing takes a long time #29731

Open
@zxc11086

Description

@zxc11086

Summary

https://github.com/matplotlib/matplotlib/blob/v3.10.1/lib/matplotlib/widgets.py#L1937
self.canvas.draw() takes a long time when mouse moves out

Proposed fix

restore the background
self.canvas.restore_region(self.background)
self.canvas.blit(self.ax.bbox)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions