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)) -M. Hampton On Mar 11, 2:21 am, wxu...@sohu.com wrote: > I don't want to plot f(x,y,z)=0.Yes, it should a 4d plot as you said.can that > be done in sage?Thanks!YC ----- 原文 ----- 发件人: John H Palmieri 主 题: > [sage-support] Re: 3D plot in sage时 间: 2010年3月10日 07:04:29On Mar 10, > 9:39 am, wxu...@sohu.com wrote:> Hi everyone,I want do this thing as > follows in sage, is that > OK?var('x,y,z')f=cos(x)*cos(y)+cos(y)*cos(z)+cos(z)*cos(x)and then I want to > plot f. how can do it in sage?Thanks in advance!regards,YCIsn't this a 4d > plot? Or do you want to plot f(x,y,z)=0? In thatcase, you could dosage: > implicit_plot3d(f == 0, (x, -2, 2), (y, -2, 2), (z, -2, 2))--John-- To post > to this group, send email to sage-supp...@googlegroups.comto unsubscribe from > this group, send email to sage-support+unsubscr...@googlegroups.comfor more > options, visit this group > athttp://groups.google.com/group/sage-supportURL:http://www.sagemath.org -- 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