In the project below I can control the size of the two windows on the screen. But how can I control the positions of the windows? I use jupyter notebook.
Regards, Poul Riis Denmark
import numpy as np from mayavi import mlab from math import *
xx=np.linspace(0,1,201,endpoint=True) yy=xx2 zz=np.sin(2np.pi(xx+yy))
fig1 = mlab.figure(figure='Figur 1',size=(600, 300)) s1 = mlab.points3d(xx, yy, zz,scale_factor=0.02,color=(1,0,0)) mlab.axes(s1, ranges = [min(xx), max(xx), min(yy), max(yy), min(zz), max(zz)])
fig2 = mlab.figure(figure='Figur 2',size=(300, 600)) s2 = mlab.points3d(xx, yy, zz,scale_factor=0.05,color=(1,1,0))
mlab.show()
Log in to post a comment.
In the project below I can control the size of the two windows on the screen. But how can I control the positions of the windows?
I use jupyter notebook.
Regards,
Poul Riis
Denmark
import numpy as np
from mayavi import mlab
from math import *
xx=np.linspace(0,1,201,endpoint=True)
yy=xx2
zz=np.sin(2np.pi(xx+yy))
fig1 = mlab.figure(figure='Figur 1',size=(600, 300))
s1 = mlab.points3d(xx, yy, zz,scale_factor=0.02,color=(1,0,0))
mlab.axes(s1, ranges = [min(xx), max(xx), min(yy), max(yy), min(zz), max(zz)])
fig2 = mlab.figure(figure='Figur 2',size=(300, 600))
s2 = mlab.points3d(xx, yy, zz,scale_factor=0.05,color=(1,1,0))
mlab.show()