Re: How to get coordinate information of a histogram

Valery Fine (fine@bnl.gov)
Mon, 3 Aug 1998 18:35:35 -0500


On 4 Aug 98 at 0:58, Wei Xie wrote:

>
> In TCanvas "option" menu, if "Event Status" is selected, coordinate
> information can be shown at the bottom of the Canvas. It's
> something like
> the following exmple:
>
> Pad example TFrame 122,333, x=1.97,y=3.06
>
> In above example, "x" and "y" give the position of your mouse in a
> TFrame that contains the histogram. Could you tell me how to get the
> value of "x" and "y" in my code.
>
> I did not manage to find answer in the source code of TCanvas.
>

Please read:

http://root.cern.ch/root/roottalk/roottalk98/1312.html
http://root.cern.ch/root/roottalk/roottalk98/1355.html
=================================================================
Dr. Valeri Faine (Fine)
------------------- Phone: +1 516 344 7806
Brookhaven National Laboratory FAX : +1 516 344 4206
Bldg. 510A /STAR mailto:fine@bnl.gov
Upton, New York, 11973-5000 http://nicewww.cern.ch/~fine
USA

Dr. Valery Fine Telex : 911621 dubna su
-----------
LCTA/Joint Inst.for Nuclear Res. Phone : +7 09621 6 40 80
141980 Dubna, Moscow region Fax : +7 09621 6 51 45
Russia mailto:fine@main1.jinr.dubna.su