python - mayavi 3d object in matplotlib Axes3D -
i find myself frustrated lack of rendering features in matplotlib's mplot3d. in of these cases, find can want in mayavi, still matplotlib 3d axes preferable, if aesthetics, latex-ified labels , visual consistency other figures.
my question here obvious hack: possible draw 3d object (a surface or 3d scatter plot or whatever) in mayavi without axes, export image, place in matplotlib axes3d of correct size, orientation, coordinate projection, etc.? can think of outline of needed accomplish this, or perhaps offer skeleton solution?
i fiddled around time ago , found had no trouble in exporting transparent background mayavi figure , placing in empty matplotlib axes3d (with ticks, labels, , on), didn't far in getting camera configurations of mayavi , matplotlib match. setting 3 common parameters of azimuth, elevation, , distance equal in both environments didn't trick; presumably what's needed consideration of perspective (or other) transformations going on render whole scene, , i'm clueless in area.
it seems might useful: http://docs.enthought.com/mayavi/mayavi/auto/example_mlab_3d_to_2d.html
Comments
Post a Comment