Sharedsupport / 2016-09-18-120242-colormap.sagewsOpen in CoCalc
Author: William A. Stein
License: GNU General Public License v3.0
Description: Examples for support purposes.
def f(x,y): return math.sin(y*y+x*x)/math.sqrt(x*x+y*y+.0001) P = plot3d(f,(-3,3),(-3,3), adaptive=True, color=rainbow(60, 'rgbtuple'), max_bend=.1, max_depth=15) P.show()
3D rendering not yet implemented
var("x y z") T(x,y,z) = sin(1/z^3) cm = colormaps.gist_rainbow g = implicit_plot3d(x^2 + y^2 + z^2 , (x,-2, 2), (y,-2, 2), (z,-2, 2), contour=3, color=(T, cm), plot_points=30) g
(x, y, z)
3D rendering not yet implemented
var('r v') cmsel = [colormaps.autumn(_) for _ in sxrange(0,1,0.05)] p = plot3d(0.2*(r**2 + v**2) + cos(2*r)*sin(2*v), (r,-2,2), (v,-2,2), adaptive=True, color=cmsel, plot_points=10, opacity=0.9) p2 = sphere((0,0,0),1,color='black',opacity=0.5) (p+p2).show(aspect_ratio=(1,1,1))
(r, v)
3D rendering not yet implemented