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 commented on Apr 14, 2015
attn @WeatherGod
tacaswell commented on 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 commented on Apr 14, 2015
Sure, I'll open a PR.
ndawe commented on Apr 24, 2015
Haven't forgotten... I have time this weekend.