[sage-support] Re: list_plot3d (?)

2009-12-27 Thread Oscar Lazo
> I'll publish it if you think that's a good idea. I might start > tomorrow. I've published the thing in http://sagenb.org/pub/1296/ > BTW, I'd also like to use splines or some other smoothing technique. It looks very square right now, i'll add the splines later i think. -- To post to this gro

[sage-support] Re: list_plot3d (?)

2009-12-26 Thread Oscar Lazo
On 25 dic, 20:13, William Stein wrote: > Hi guys... Contribute stuff to sage! This is your big chance to > become Sage developers :-) I'll publish it if you think that's a good idea. I might start tomorrow. BTW, I'd also like to use splines or some other smoothing technique. -- To post to

Re: [sage-support] Re: list_plot3d (?)

2009-12-25 Thread William Stein
On Fri, Dec 25, 2009 at 12:05 PM, Oscar Lazo wrote: > I've found the same problem. What i did is write a program that > returns lines between nearest-neighbors. But you have to point out the > begining of the curve for it not to make a closed curve. Also, it has > problems with connex? cuves (an 8

[sage-support] Re: list_plot3d (?)

2009-12-25 Thread Mike Witt
On Dec 25, 3:59 pm, Jason Grout wrote: > Mike Witt wrote: > > On Dec 25, 10:05 am, William Stein wrote: > >> On Fri, Dec 25, 2009 at 9:07 AM, Mike Witt wrote: > >>> If I have a list of points that represent a 3d curve, how would I go > >>> about plotting them?  For example, is there a way to m

[sage-support] Re: list_plot3d (?)

2009-12-25 Thread Jason Grout
Mike Witt wrote: > On Dec 25, 10:05 am, William Stein wrote: >> On Fri, Dec 25, 2009 at 9:07 AM, Mike Witt wrote: >>> If I have a list of points that represent a 3d curve, how would I go >>> about plotting them? For example, is there a way to make list_plot3d >>> plot a curve rather than a surfa

[sage-support] Re: list_plot3d (?)

2009-12-25 Thread Oscar Lazo
I've found the same problem. What i did is write a program that returns lines between nearest-neighbors. But you have to point out the begining of the curve for it not to make a closed curve. Also, it has problems with connex? cuves (an 8-shaped curve for instance). -- To post to this group, send

[sage-support] Re: list_plot3d (?)

2009-12-25 Thread Mike Witt
On Dec 25, 10:05 am, William Stein wrote: > On Fri, Dec 25, 2009 at 9:07 AM, Mike Witt wrote: > > If I have a list of points that represent a 3d curve, how would I go > > about plotting them?  For example, is there a way to make list_plot3d > > plot a curve rather than a surface? > > Use line3d.

[sage-support] Re: list_plot3d

2009-09-12 Thread Ranjit
Thanks, I didn't even notice that extra 0 in there. On Sep 12, 10:16 am, Marshall Hampton wrote: > I think John is right that your problem is mainly from giving > list_plot3d too many points.  I assume in your original code that you > have done "import numpy as np" somewhere.  Then your code wor

[sage-support] Re: list_plot3d

2009-09-12 Thread Marshall Hampton
I think John is right that your problem is mainly from giving list_plot3d too many points. I assume in your original code that you have done "import numpy as np" somewhere. Then your code works fine for me if I use "grid=np.arange(-32,32,0.5)" instead of 0.05. With the 0.05 differences, you are

[sage-support] Re: list_plot3d

2009-09-11 Thread John H Palmieri
On Sep 11, 11:02 am, Ranjit wrote: > Yeah, the sample code works for me too. I'm not sure I see what's > different about what I'm doing. > > Here's an example of something that doesn't work for me: > > var("rho_X rho_Y R") > R=6 > rho=sqrt(rho_X^2+rho_Y^2) > EE(rho_X,rho_Y)=exp(-rho/R) > ee=fast_

[sage-support] Re: list_plot3d

2009-09-11 Thread Ranjit
Yeah, the sample code works for me too. I'm not sure I see what's different about what I'm doing. Here's an example of something that doesn't work for me: var("rho_X rho_Y R") R=6 rho=sqrt(rho_X^2+rho_Y^2) EE(rho_X,rho_Y)=exp(-rho/R) ee=fast_float(EE) grid=np.arange(-32,32,0.05) eeM=[[ee(x,y) fo

[sage-support] Re: list_plot3d

2009-09-11 Thread Jason Grout
Ranjit wrote: > I tried using the function list_plot3d to visualize a 2d matrix, but > it doesn't seem to work. I tried it with both a numpy array and a sage > matrix and in both cases the Jmol applet loads but then all I see is a > white box. Right clicking gives the contextual menu, but none of