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

Skip to content

Add tooltip API to backend_bases.py and get/set_hover() to artist.pyi #1

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 5 commits into from
Apr 21, 2023

Conversation

eslothower
Copy link
Owner

@eslothower eslothower commented Apr 17, 2023

PR Summary

This is in relation to issue matplotlib#23378. To create a tooltip upon hover, we first need the hover tooltip API in backend_bases, along with the associated get/set_hover() methods in artist. This PR adds this API and these methods. HoverEvent was chosen over TooltipEvent to remain more general for other use cases.

PR Checklist

Documentation and Tests

  • Has pytest style unit tests (and pytest passes)
  • Documentation is sphinx and numpydoc compliant (the docs should build without error).
  • New plotting related features are documented with examples.

Release Notes

  • New features are marked with a .. versionadded:: directive in the docstring and documented in doc/users/next_whats_new/
  • API changes are marked with a .. versionchanged:: directive in the docstring and documented in doc/api/next_api_changes/
  • Release notes conform with instructions in next_whats_new/README.rst or next_api_changes/README.rst

@eslothower eslothower added the enhancement New feature or request label Apr 17, 2023
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Thank you for opening your first PR into Matplotlib!

If you have not heard from us in a while, please feel free to ping @matplotlib/developers or anyone who has commented on the PR. Most of our reviewers are volunteers and sometimes things fall through the cracks.

You can also join us on gitter for real-time discussion.

For details on testing, writing docs, and our review process, please see the developer guide

We strive to be a welcoming and open project. Please follow our Code of Conduct.

@yanxinc yanxinc merged commit e2b2c0e into main Apr 21, 2023
@eslothower eslothower deleted the Eli---Task-1 branch May 6, 2023 04:32
@eslothower eslothower assigned eslothower and unassigned symbolic23 and pm3512 May 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants