You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Axes3D: factor out 3D coordinate guessing from format_coord() #4334
To get the estimated (x,y,z) coordinate of a mouse event in a 3D figure we must parse these values from the string generated by Axes3D.format_coord. Wouldn't it be more useful to factor that out into a separate method (coord?) giving access to x, y, z = proj3d.inv_transform(xd, yd, z, self.M)? format_coord would then simply convert that to the formatted string.
The question of how to extract these coordinates has been asked a few times on SO:
Activity
tacaswell commentedon Apr 14, 2015
attn @WeatherGod
tacaswell commentedon Apr 14, 2015
I agree it would make sense to turn from Line 1101 to the end of the function into
and then use it within
format_coord.@ndawe Any desire to take a crack at implementing this?
ndawe commentedon Apr 14, 2015
Sure, I'll open a PR.
ndawe commentedon Apr 24, 2015
Haven't forgotten... I have time this weekend.