Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download
Views: 230
%var x, y, z f(x, y) = x * sin(y)
def colorfunc(x, y): # scale image of f to [0, 1] return N((f(x,y) + 5) / 10)
plot3d(f, (x, -5, 5), (y, -5, 5), color = (colorfunc, colormaps.gist_rainbow), figsize=(8, 4)).show(viewer="tachyon")
plot3d(f, (x, -5, 5), (y, -5, 5), adaptive=True, color=['red', 'black'])
3D rendering not yet implemented