Actually I do need them to be plotted by color.it seems that sage is not 
designed for this way.could anyone give some information aboutwhat open source 
software can do this?Thanks a lot!YC ----- 原文 ----- 发件人: Jason Grout 主 题: Re: 
回复: [sage-support] Re: 3D plot in sage时 间: 2010年3月12日  01:26:30On 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 thecontour 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-supp...@googlegroups.comto unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.comfor more options, visit this group at 
http://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

Reply via email to