See the following URLs:
http://root.cern.ch/root/htmldoc/TPad.html#TPad:AddExec
http://root.cern.ch/root/htmldoc/TPad.html#TPad:WaitPrimitive
For example, assuming an existing pad pointed by gPad, the following lines
will wait until :
- you have started the graphics editor from the canvas menu "edit"
- selected the item "PolyLine"
- clicked on a list of points (double click on the last point to terminate
the list)
root > hpx.Draw()
root > TGraph *gr = (TGraph*)gPad->WaitPrimitive()
root > gr->Print("all")
Rene Brun
Harufumi Tsuchiya wrote:
>
> Hi, Rooters,
>
> I would like to do the following.
>
> If click some data point in graph, I would like to
> get the coordinate of the data point on display or
> write the coordinate on file.
>
> Is this possible by using ROOT ?
>
> Now, I use ROOT version 3.00/06 on Red Hat 7.0.
>
> Regards,
>
> Harufumi Tsuchiya.
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:51 MET