On 03/12/2010 03:51 AM, Marshall Hampton wrote: > One option is several implicit plots, colored by value, i.e. something > like: > > var('x,y,z') > f=cos(x)*cos(y)+cos(y)*cos(z)+cos(z)*cos(x) > > imps = [] > plot_range = srange(0,3,.75) > color_range = [i/N(len(plot_range)) for i in range(len(plot_range))] > > for i,q in enumerate(plot_range): > red = color_range[i] > imps.append(implicit_plot3d(f-q==0, (x, -2, 2), (y, -2, 2), (z, > -2, 2), opacity = .5, rgbcolor = (red,0,1-red))) > > show(sum(imps)) >
If you didn't need them to be plotted by color, then you could use the contour option, like in the doc examples: sage: implicit_plot3d((x^2 + y^2 + z^2), (x, -2, 2), (y, -2, 2), (z, -2, 2), plot_points=60, contour=[1,3,5]) Jason -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org