xxxxxxxxxx
var('u')
def cm(t): return colormaps.ocean(80*t)[:3]
f=[(cos(u),0,u^2/100),(2*sin(u/2),0,u^2/100),
(3*cos(u/3),0,u^2/100)]
p=sum([revolution_plot3d(
f[i],(u,0,6*pi),parallel_axis='z',plot_points=30,
opacity=.4,mesh=True,color=cm(i+1))
for i in range(3)])
p.show(frame=False)
No comments:
Post a Comment