xy plots of line segment

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

xy plots of line segment

Linda Barthel
We are interested in plotting the xy coordinates of the ends of a line,
(x1y1) (x2y2).  This seems like a very simple task but I have not be
able to get to a solution.  The point selection tool will record the
the xy coordinate but we need to see a line between the points and have
the results posted as a pair of coordinates.  I've scanned through the
Plug-ins but nothing seems to jump out at me.
Any help would be highly appreciated!
Linda Barthel
University of Michigan
Department of Molecular Cellular and Developmental Biology
[hidden email]

                  Linda Barthel, M.S.
          Research Laboratory Specialist Lead
Department of Molecular, Cellular, and Developmental Biology
           3010 Natural Sciences Building (Kraus)
                     830 N. University                 Ann Arbor, MI  
48109-1048

lab: (734) 764-7476
fax: (734) 647-0884

http://www-personal.umich.edu/~praymond/
Reply | Threaded
Open this post in threaded view
|

Re: xy plots of line segment

jmutterer
Linda,

After installing the following macro, you can get the coordinates of a
simple line selection by pressing F1.

Jerome.

macro "straight line ends [F1]" {
getSelectionCoordinates(x,y);
print(x[0],y[0],x[1],y[1]);
}



On Dec 1, 2007 2:52 PM, Linda Barthel <[hidden email]> wrote:

> We are interested in plotting the xy coordinates of the ends of a line,
> (x1y1) (x2y2).  This seems like a very simple task but I have not be
> able to get to a solution.  The point selection tool will record the
> the xy coordinate but we need to see a line between the points and have
> the results posted as a pair of coordinates.  I've scanned through the
> Plug-ins but nothing seems to jump out at me.
> Any help would be highly appreciated!
> Linda Barthel
> University of Michigan
> Department of Molecular Cellular and Developmental Biology
> [hidden email]
>
>                  Linda Barthel, M.S.
>          Research Laboratory Specialist Lead
> Department of Molecular, Cellular, and Developmental Biology
>           3010 Natural Sciences Building (Kraus)
>                     830 N. University                 Ann Arbor, MI
> 48109-1048
>
> lab: (734) 764-7476
> fax: (734) 647-0884
>
> http://www-personal.umich.edu/~praymond/<http://www-personal.umich.edu/%7Epraymond/>
>