-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Pick events broken in log axes #3540
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
Comments
Additional note, this seems to be limited to just the axvspan (and I suspect the axhspan). If I modify the above code to do a plot instead of axvspan, the objects respond to pick events. I suspect it might be something wrong with the transform handling. Maybe the picker code is not using the artist's transforms object? |
Punting on this again, I don't think this is a blocker as it is reportedly limited to the span objects. |
In 1.5.3 only the left bar showed red. In 2.0 rc2 none showed red |
This is apparently due to
but it probably needs a test, and I guess there is some memory cost to maintaining the entire transformed path in memory (but I guess that transformed path will have to be computed at draw time anyways so perhaps it should (is already?) be cached somewhere. |
I was wondering whether you could inverse-transform the point, rather than forward-transform the path (and then there's no memory cost anymore), but for really weird nonseparable transforms it may be not the same? (You can imagine a line that originally passes above a point curve below it after application of the transform... perhaps.) Edit: clearly that won't work -- imagine the case, in a polar plot, of three points at r=1 and thetas=0, 120, 240 forming a triangle; if we don't transform the path first it will appear as empty. |
Handling pick events does not work on logarithmic axes. See the example below. As long as the line statement
ax.set_xscale('log')
is commented out, clicking on the polygons created byaxvspan
xauses them to change from gray to red. Uncomment that line to make the x axis logarithmic, and clicking on the polygons has either no effect or is misdirected to the far-left polygon only.Tested on version 1.4.0 and master as of 04496b0 on Mac OS X Mavericks.
[TAC edited for formatting]
The text was updated successfully, but these errors were encountered: