Open capaulson opened 9 years ago
bump. any ideas on how to fix this?
This is caused by the orientation of the object being close to where if you rotate the object a bit, the axis will swap side. The ghost axes occur when saving a figure, i.e. when everything is rendered again. To prevent this from happening, you may
(1) set the view of the camera so that the axis is safely on one side despite small deviation; OR
(2) set a.axes.fly_mode = "none"
then the axes would be fixed
For (1), setting the camera view can be achieved like this:
mlab.view(50.5, 60.5, 210.8, [33.6, 35., 28.5])
One can run with interactive python session or in mayavi2 and play with the scene to find the optimal orientation, then call mlab.view()
to get the view setting.
@capaulson Hope this help.
I've had issues with axis 'ghosting' when saving PNG images. The code to generate plots follows:
This sometimes works:
And sometimes produces ghosted text:
Any ideas about what's going on?