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 asking for a surface interpolated between 1280^2 = 1638400 points. For visualization purposes this is apparently overkill.
-M. Hampton On Sep 11, 5:43 pm, John H Palmieri <[email protected]> wrote: > On Sep 11, 11:02 am, Ranjit <[email protected]> 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_float(EE) > > grid=np.arange(-32,32,0.05) > > I don't know what "np.arange" is. I used "srange" instead; is that > similar? > > > eeM=[[ee(x,y) for x in grid] for y in grid] > > list_plot3d(eeM) > > This didn't work for me, either -- maybe there are too many points for > jmol to handle it? When I used > > grid = srange(-32, 32, 0.1) > > it worked, though it is a bit sluggish. It is more responsive the > larger I make that last parameter. > > John --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---
