Re: 回复: [sage-support] Re: 3D plot in sage

2010-03-17 Thread wxuyec
Thank you! - 原文 - 发件人: Jaap Spies 主 题: Re: 回复: [sage-support] Re: 3D 
plot in sage时 间: 2010年3月16日  05:43:18wxu...@sohu.com wrote:> Thank you very 
much!>> I will try this.>You could try the experimental version found 
here:http://sage.math.washington.edu/home/jsp/SPKGS/ETS/Jaap-- 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

Re: 回复: [sage-support] Re: 3D plot in sage

2010-03-16 Thread Jaap Spies

wxu...@sohu.com wrote:

Thank you very much!

I will try this.



You could try the experimental version found here:

http://sage.math.washington.edu/home/jsp/SPKGS/ETS/

Jaap

--
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


Re: 回复: [sage-support] Re: 3D plot in sage

2010-03-16 Thread wxuyec
Thank you very much! I will try this.regards,YC - 原文 - 发件人: Jason Grout 
主 题: Re: 回复: [sage-support] Re: 3D plot in sage时 间: 2010年3月16日  03:36:36On 
03/16/2010 02:24 AM, wxu...@sohu.com wrote:> Hi Jason and everyone,> > 
Thank you very much for your reply.> > Now I have a function or a set of 
data depending all the three > coordinates x, y, z.> In other words, 
there is a corresponding value at every point in 3 > dimensional space, 
which maybe> varies from -1 to 1. I want use color to represent the values 
in every > point in 3D space.> > For example in a room there is a 
temperature value at every point in 3D > space of the room, I> want 
describe the temperature value by color for every point in the room.> > I 
really haven't find a proper example figure from internet.Mayavi2 might be the 
best tool for this job.  
Seehttp://code.enthought.com/projects/mayavi/docs/development/html/mayavi/mlab.html#visualizing-volumetric-scalar-datafor
 some examples.Thanks,Jason-- Jason Grout-- 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


Re: 回复: [sage-support] Re: 3D plot in sage

2010-03-16 Thread Jason Grout
On 03/16/2010 02:24 AM, wxu...@sohu.com wrote:
> Hi Jason and everyone,
> 
> Thank you very much for your reply.
> 
> Now I have a function or a set of data depending all the three 
> coordinates x, y, z.
> In other words, there is a corresponding value at every point in 3 
> dimensional space, which maybe
> varies from -1 to 1. I want use color to represent the values in every 
> point in 3D space.
> 
> For example in a room there is a temperature value at every point in 3D 
> space of the room, I
> want describe the temperature value by color for every point in the room.
> 
> I really haven't find a proper example figure from internet.


Mayavi2 might be the best tool for this job.  See
http://code.enthought.com/projects/mayavi/docs/development/html/mayavi/mlab.html#visualizing-volumetric-scalar-data
for some examples.

Thanks,

Jason

-- 
Jason Grout

-- 
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


Re: 回复: [sage-support] Re: 3D plot in sage

2010-03-16 Thread wxuyec
Hi Jason and everyone,Thank you very much for your reply.Now I have a function 
or a set of data depending all the three coordinates x, y, z.In other words, 
there is a corresponding value at every point in 3 dimensional space, which 
maybevaries from -1 to 1. I want use color to represent the values in every 
point in 3D space.For example in a room there is a temperature value at every 
point in 3D space of the room, I want describe the temperature value by color 
for every point in the room.I really haven't find a proper example figure from 
internet.thanks,YC - 原文 - 发件人: Jason Grout 主 题: Re: 回复: [sage-support] 
Re: 3D plot in sage时 间: 2010年3月16日  05:19:05On 03/12/2010 05:43 AM, 
wxu...@sohu.com wrote:> 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 about> what open source software can do this?> I really don't 
understand what sort of plot you want.  Can you post somepictures giving 
examples of what sort of plot you want, or be extremelyprecise in describing 
*exactly* how you want to visually represent thisfunction?  There are lots of 
ways to represent a 4d function like this.Thanks,Jason-- Jason Grout-- 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


Re: 回复: [sage-support] Re: 3D plot in sage

2010-03-15 Thread Jason Grout
On 03/12/2010 05:43 AM, wxu...@sohu.com wrote:
> 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 about
> what open source software can do this?
> 

I really don't understand what sort of plot you want.  Can you post some
pictures giving examples of what sort of plot you want, or be extremely
precise in describing *exactly* how you want to visually represent this
function?  There are lots of ways to represent a 4d function like this.

Thanks,

Jason



-- 
Jason Grout

-- 
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


Re: 回复: [sage-support] Re: 3D plot in sage

2010-03-12 Thread wxuyec
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


Re: 回复: [sage-support] Re: 3D plot in sage

2010-03-12 Thread Jason Grout
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


Re: 回复: [sage-support] Re: 3D plot in sage

2010-03-12 Thread Marshall Hampton
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


回复: [sage-support] Re: 3D plot in sage

2010-03-11 Thread wxuyec
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 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