0
以下のコードは、Tkinter用とmayavi用の2つの画面をダンプします。 Tkinterの中にマヤビを埋め込む方法。それも可能ですか?そうでない場合は、フレーム/キャンバスに埋め込まれたmayaviプロットを持つGUIを構築するための代替手段は何ですか?tavinterにmayaviプロットを埋め込むことは可能ですか?
from tkinter import *
import numpy
from mayavi.mlab import *
top = Tk()
t = numpy.linspace(0, 4 * numpy.pi, 20)
cos = numpy.cos
sin = numpy.sin
x = sin(2 * t)
y = cos(t)
z = cos(2 * t)
s = 2 + sin(t)
points3d(x, y, z, s, colormap="copper", scale_factor=.25)
top.mainloop()