xxxxxxxxxx
def _(axis=['x','y','z'],
cm=['bwr','jet','cool','hsv']):
var('u,phi'); curve=(1+u^2/8,1-u^3/128,u)
def cf(u,phi): return cos(2*phi+u)^2
p=revolution_plot3d(
curve,(u,-4,8),(phi,0,2*pi),
parallel_axis=axis,color=(cf,colormaps[cm]))
p.show(frame=False)
No comments:
Post a Comment