# gPad-\>GetEventX() to axis range

**URL:** <https://root-forum.cern.ch/t/gpad-geteventx-to-axis-range/9838>\
**Category:** ROOT\
**Created:** [March 18, 2010, 7:32pm UTC](https://root-forum.cern.ch/t/gpad-geteventx-to-axis-range/9838 "2010-03-18T19:32:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tripiana](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/t/ba9def/32.png) [@tripiana](https://root-forum.cern.ch/u/tripiana)\
**Post date:** [March 18, 2010, 7:32pm UTC](https://root-forum.cern.ch/t/gpad-geteventx-to-axis-range/9838/1 "2010-03-18T19:32:57Z")

</div>

Hi all,

i’d like to relate the gPad-\>GetEventX() value to the actual position in the TH2 axis i’m pointing to. (ultimately it will the x-bin i’m pointing to).

Is there a way to do it? Some hint at least for a contact point between them?

thanx in advance,  
Cheers,

Martin

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [March 19, 2010, 8:55am UTC](https://root-forum.cern.ch/t/gpad-geteventx-to-axis-range/9838/2 "2010-03-19T08:55:56Z")

</div>

Have a look at $ROOTSYS/tutorials/graphics/mandelbrot.C

---

<div class="post-metadata">

**Author:** ![tripiana](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/t/ba9def/32.png) [@tripiana](https://root-forum.cern.ch/u/tripiana)\
**Post date:** [March 19, 2010, 6:20pm UTC](https://root-forum.cern.ch/t/gpad-geteventx-to-axis-range/9838/3 "2010-03-19T18:20:04Z")

</div>

yes thanks! I’ve already found the answer surfing through $ROOTSYS/tutorials/

e,g, inside $ROOTSYS/tutorials/hist/DynamicSlice.C

Cheers, M
