Login  Register

Re: xy plots of line segment

Posted by jmutterer on Dec 02, 2007; 8:06pm
URL: http://imagej.273.s1.nabble.com/xy-plots-of-line-segment-tp3697888p3697889.html

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/>
>