Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Fix quad mesh cursor data#22907
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
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Uh oh!
There was an error while loading.Please reload this page.
I took the liberty of editing your post to point out the issue number. In this way, Github links this PR and the issue and the issue will be automatically closed when this is merged. |
@oscargus perfect, thanks! I don't have the rights to merge anything so this needs to be done by one of your devs as well! |
meeseeksdev backport to v3.5.x |
Thanks@raphaelquast! Congratulations on your first PR to Matplotlib 🎉 We hope to hear from you again. |
…907-on-v3.5.xBackport PR#22907 on branch v3.5.x (Fix quad mesh cursor data)
I don't think this was quite right because Hover the cursor over the figure in this example: importmatplotlib.pyplotaspltimportnumpyasnpn=4x=np.arange(n)X=x[:,None]*x[None, :]fig,ax=plt.subplots()mesh=ax.pcolormesh(X)mesh.set_mouseover(True)plt.show() |
@greglucas sorry... indeed that's not the desired behavior! I opened a new pull request to fix this. (#22957)
|
Uh oh!
There was an error while loading.Please reload this page.
PR Summary
Closes:#22908
This is just a very minor bug I noticed...
When using a
QuadMesh
without setting an array, theget_cursor_data
function throws an error because it does not check if an array has been set.PR Checklist
Tests and Styling
pytest
passes).flake8-docstrings
and runflake8 --docstring-convention=all
).Documentation
doc/users/next_whats_new/
(follow instructions in README.rst there).doc/api/next_api_changes/
(follow instructions in README.rst there).