简体   繁体   中英

How can I change the window title of python Mayavi?

How Can I change the window title "Mayavi Scene 1" to my own?

from __future__ import absolute_import, division, print_function
from mayavi import mlab
import numpy as np

fig = mlab.figure(figure=None, bgcolor=(0,0,0), fgcolor=None, engine=None, size=(400, 400))
data = np.random.rand(3, 3)
x, y, z = np.transpose(data)
mlab.points3d(x, y, z, -y, colormap="RdYlBu", scale_factor=1, scale_mode='none')
mlab.show()

在此处输入图片说明

Like that:

from mayavi import mlab
mlab.figure('My title')
s = mlab.mesh(x, y, z)
mlab.show()

( mlab.figure )

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM