Skip to content

BUG: p2c not reliable in scatter or gl2d #1548

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

Closed
destradafilm opened this issue Apr 3, 2017 · 4 comments
Closed

BUG: p2c not reliable in scatter or gl2d #1548

destradafilm opened this issue Apr 3, 2017 · 4 comments

Comments

@destradafilm
Copy link

Based of this example by @etpinard
http://codepen.io/etpinard/pen/EyydEj

If you zoom or pan, the p2c conversion is unreliable
p2c bug

@etpinard
Copy link
Contributor

etpinard commented Apr 3, 2017

That p2c and other x2y conversion functions aren't official features by any means and aren't guaranteed to work. That codepen I wrote is grade-A hack.

What I think we should do: is add another plotly_ event (e.g. plotly_mouse) that would get fired on anytime you mouse over a graph with or without triggering plotly_hover.

@destradafilm
Copy link
Author

I vote for that ploty_mouse event

@etpinard
Copy link
Contributor

etpinard commented Apr 3, 2017

@destradafilm great. I'll close this issue then and merge it with #145

@therealsquidgee
Copy link

therealsquidgee commented May 8, 2017

Hey @destradafilm not sure if you still need this but I slightly modified @etpinard 's codepen to make the mousemove event more reliable (still a grade A hack though and it will error if the start and end of the x range are equidistant from 0 e.g. [-12, 12] or something like that).

http://codepen.io/therealsquidgee/pen/EmbOzX

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

No branches or pull requests

3 participants