Hi
When I call,
world + sum([point3d(v, color='red') for v in city_coords]) + sum
([point3d(v, size=2, color='green') for v in mydots])
from within a file it does not work. I do not get an error message, it
is just that the Jmol 3D image viewer never appears.
That line of code call Jmol only
On Mon, Nov 24, 2008 at 9:00 PM, acardh [EMAIL PROTECTED] wrote:
Hi
When I call,
world + sum([point3d(v, color='red') for v in city_coords]) + sum
([point3d(v, size=2, color='green') for v in mydots])
from within a file it does not work. I do not get an error message, it
is just that
I change the sequence of dots to size=2 and now the line looks better.
world + sum([point3d(v, color='red') for v in city_coords]) + sum
([point3d(v, size=2, color='green') for v in mydots])
The parametric_plot3d command seems a better way to do this but I am
not sure yet how to use it. I am
It might be a little easier to generate a straight-line list of points
and then normalize them to length 1.
-M. Hampton
On Nov 10, 4:44 pm, Robert Bradshaw [EMAIL PROTECTED]
wrote:
On Nov 10, 2008, at 12:57 PM, acardh wrote:
One more question about this. How can I draw a line between
I am drawing the line in this way:
res=100
theta1=38.7598
phi1=-121.294
theta2=40.3503
phi2=-74.6594
myline=[]
for i in range(1,100):
myline[i] = ((i/res)*theta1 + ((res-i)/res)*theta2, (i/res)
*phi1 + ((res-i)/res)*phi2)
mydots = [(cos(t*theta)*cos(t*phi), sin(t*theta)*cos(t*phi), sin
You can pass a radius or size parameter to the point command,
which will make them smaller or larger. Also, you can look at the
line3d command (pass it a list of points to get a curved line).
On Nov 11, 2008, at 8:11 PM, acardh wrote:
I am drawing the line in this way:
res=100
On Nov 11, 9:01 pm, Robert Bradshaw [EMAIL PROTECTED]
wrote:
You can pass a radius or size parameter to the point command,
which will make them smaller or larger. Also, you can look at the
line3d command (pass it a list of points to get a curved line).
Also the parametric_plot3d command
One more question about this. How can I draw a line between any two
given points?
I am doing this
world = sphere((0,0,0), size=1, color='blue')
cities = [(38.7598, -121.294),(40.3503, -74.6594),(27.959, -82.4821)]
t = RDF(pi/180)
city_coords = [(cos(t*theta)*cos(t*phi), sin(t*theta)*cos(t*phi),
On Nov 10, 2008, at 12:57 PM, acardh wrote:
One more question about this. How can I draw a line between any two
given points?
I am doing this
world = sphere((0,0,0), size=1, color='blue')
cities = [(38.7598, -121.294),(40.3503, -74.6594),(27.959, -82.4821)]
t = RDF(pi/180)
city_coords =
Thanks Robert, it's exactly what I needed. It was so easy for you, I
guess.
:o)
On Nov 9, 12:28 am, Robert Bradshaw [EMAIL PROTECTED]
wrote:
On Nov 8, 2008, at 7:52 PM, acardh wrote:
Hi,
Plotting an sphere is straightforward but I need help in how to draw
points on the sphere. The
10 matches
Mail list logo