VMD-L Mailing List
From: John Stone (johns_at_ks.uiuc.edu)
Date: Wed Nov 27 2002 - 12:34:10 CST
- Next message: Minerva Gonzalez: "can VMD display a box?"
- Previous message: Peter VARNAI: "polar coordinates"
- In reply to: Peter VARNAI: "polar coordinates"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Hi Peter,
You could write a simple Tcl proc that converts the polar
coordinates to cartesian coordinates fairly simply. Do you really
mean polar (2-D) coordinates, or are you actually thinking of spherical
or cylindrical (3-D) coordinates? If you are only looking to plot
2-D polar coordinates, then gnuplot would probably be the best bet, since
it can evaluate functions of data points. Its probably also possible to
do this with other plotting programs, but I'm more familiar with gnuplot
personally. If you want to plot these points in the same space as your
molecule in VMD, then you would want to use a Tcl proc that translates
the polar/cylindrical/spherical coordinates into cartesian coordinates,
and passes them to a "draw point { x y z }" call.
Thanks,
John Stone
vmd_at_ks.uiuc.edu
On Wed, Nov 27, 2002 at 06:52:10PM +0100, Peter VARNAI wrote:
> Dear VMD-list,
>
> I would like to plot points given in polar coordinates. Is there an easy
> way to do this with VMD?
>
> Thanks,
> Peter
-- NIH Resource for Macromolecular Modeling and Bioinformatics Beckman Institute for Advanced Science and Technology University of Illinois, 405 N. Mathews Ave, Urbana, IL 61801 Email: johns_at_ks.uiuc.edu Phone: 217-244-3349 WWW: http://www.ks.uiuc.edu/~johns/ Fax: 217-244-6078
- Next message: Minerva Gonzalez: "can VMD display a box?"
- Previous message: Peter VARNAI: "polar coordinates"
- In reply to: Peter VARNAI: "polar coordinates"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]