The below code dumps two screens, one for Tkinter and second for mayavi. How to embed mayavi inside Tkinter. Is it even possible? If not, what are the alternatives for building a GUI which has mayavi plots embeded inside a frame/canvas?
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()