Skip to content
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

BubblePlot: How to get the bubble nearest mouse #1652

Closed
adgriff2 opened this issue Feb 10, 2022 · 0 comments · Fixed by #1657
Closed

BubblePlot: How to get the bubble nearest mouse #1652

adgriff2 opened this issue Feb 10, 2022 · 0 comments · Fixed by #1657

Comments

@adgriff2
Copy link

ScottPlot Version: 4.1.33

Operating System: Win 10

Application Type: winforms

Question: I'd like to find the nearest bubble to a mouse position. I've found helper functions for scatterplots only. I could calculate this myself if I had access to the list of bubbles, but this is a non-public member of the BubblePlot object. I can maintain a separate list of the bubbles myself for reference, but this seems unnecessary when I should be able to reference the bubble list directly.

BambOoxX added a commit to BambOoxX/ScottPlot that referenced this issue Feb 12, 2022
- Added `GetPointNearest`, `GetPointNearestX` and `GetPointNearestY` to `BubblePlot`
@swharden swharden linked a pull request Feb 12, 2022 that will close this issue
@swharden swharden changed the title Non-Public BubblePlot Bubble List BubblePlot: How to get the bubble nearest mouse Feb 12, 2022
swharden added a commit to Maoyao233/ScottPlot that referenced this issue Feb 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant