enthought / mayavi

3D visualization of scientific data in Python
http://docs.enthought.com/mayavi/mayavi/
Other
1.28k stars 282 forks source link

Close GUI and Savefig #1171

Closed jwma0725 closed 1 year ago

jwma0725 commented 1 year ago

Hi @prabhuramachandran, I do not want to open GUI window, How can I set? I have 40000 pictures to save. If I open the window everytime, the efficiency is not high. The following is the code: mlab.view() mlab.savefig() mlab.clf() mlab.close()

prabhuramachandran commented 1 year ago

Try with the tricks here: https://mayavi.readthedocs.io/en/latest/tips.html#avoiding-the-rendering-window Basically turn on offscreen before you do anything.