Thanks to visit codestin.com
Credit goes to github.com

Skip to content

FIX: remove toggle on QuadMesh cursor data #22691

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 24, 2022

Conversation

jklymak
Copy link
Member

@jklymak jklymak commented Mar 23, 2022

PR Summary

Update:

Closes #22694

Follows up on #22693

Removes ineffective toggle for cursor data, and updates usage note to point out that mouseover is set to False by default. It is possible we will want more documentation of this as per @timhoffm

Old:

Closes #22520

#19908 made using a mouse over large pcolormesh unusably slow.

#22254 attempted to make this togglable with short circuit.

Despite the changes in #22254, pcolormesh is still really slow if you try and move a mouse around. I actually do not understand why this is the case, because the short circuit in #22254 is actually called. However, I'll put the onus of understanding the problem on the folks who want the cursor data, and I think we should pull this out for now.

PR Checklist

Tests and Styling

  • Has pytest style unit tests (and pytest passes).
  • Is Flake 8 compliant (install flake8-docstrings and run flake8 --docstring-convention=all).

Documentation

  • New features are documented, with examples if plot related.
  • New features have an entry in doc/users/next_whats_new/ (follow instructions in README.rst there).
  • API changes documented in doc/api/next_api_changes/ (follow instructions in README.rst there).
  • Documentation is sphinx and numpydoc compliant (the docs should build without error).

@jklymak jklymak added this to the v3.5.2 milestone Mar 23, 2022
@jklymak jklymak added the Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions. label Mar 23, 2022
@jklymak jklymak requested review from dstansby and anntzer March 23, 2022 21:46
@jklymak jklymak force-pushed the fix-remove-quadmesh-cursor-data branch from 5e17643 to 38744e0 Compare March 23, 2022 22:05
@@ -0,0 +1,4 @@
QuadMesh cursor data removed
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
`.QuadMesh.get_cursor_data`, introduced in 3.5.1 is unreasonably slow for
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
`.QuadMesh.get_cursor_data`, introduced in 3.5.1 is unreasonably slow for
`.QuadMesh.get_cursor_data`, introduced in 3.5 is unreasonably slow for

@anntzer
Copy link
Contributor

anntzer commented Mar 23, 2022

#22693 works for me; can you confirm?

Copy link
Contributor

@anntzer anntzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's consider #22693 first?

@jklymak jklymak force-pushed the fix-remove-quadmesh-cursor-data branch from 38744e0 to 6c2de24 Compare March 24, 2022 08:30
@jklymak jklymak changed the title FIX: completely remove QuadMesh cursor data FIX: remove toggle on QuadMesh cursor data Mar 24, 2022
@jklymak jklymak force-pushed the fix-remove-quadmesh-cursor-data branch from 6c2de24 to c784dc0 Compare March 24, 2022 08:34
Copy link
Contributor

@anntzer anntzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps less than optimal wording in the changes note, but otherwise lgtm.

@jklymak jklymak force-pushed the fix-remove-quadmesh-cursor-data branch from c784dc0 to 8971f1d Compare March 24, 2022 10:10
@tacaswell tacaswell merged commit 80c2fdc into matplotlib:main Mar 24, 2022
@QuLogic
Copy link
Member

QuLogic commented Mar 25, 2022

Something seems off with meeseeks.

@QuLogic
Copy link
Member

QuLogic commented Mar 25, 2022

@meeseeksdev backport to v3.5.x

For some reason, it thought this was closed and not merged.

meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Mar 25, 2022
tacaswell added a commit that referenced this pull request Mar 29, 2022
…691-on-v3.5.x

Backport PR #22691 on branch v3.5.x (FIX: remove toggle on QuadMesh cursor data)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Revert set_show_cursor_data [Bug]: Slow lasso selector over QuadMesh collection
4 participants