Re: // *MENU* and TAxis::SetRange()

Rene Brun (Rene.Brun@cern.ch)
Mon, 07 Dec 1998 18:00:50 +0100


Faouzi Attallah wrote:
>
> On Fri, 4 Dec 1998, Rene Brun wrote:
>
> > Rutger van der Eijk wrote:
> > >
> > > Hi,
> > >
> > > I would like to be able to interactively change the 'range' of a
> > > histogram (THX). I thought this was already implemented so I tryed all
> > > kinds of combinations of clicking in the histo/pad/canvas. I did not
> > > succeed. Looking deeper in the code I understood that a member should have
> > > // *MENU* to be inserted in the context menu.
> > >
> > > Can this comment be added to TAxis::SetRange() ? Or do I miss another
> > > method to interactively set an axis range?
> > >
> > > Thanks,
> > >
> > > Rutger van der EIjk
> >
> > Hi Rutger,
> > I will add SetRange to TAxis popup.
> > Note that in the version 2.20, I have added an automatic zoom
> > facility. You can click with the left button on the position
> > where you want to start zooming and release the button where
> > you want to end zooming.
> > This works for 1-d, 2-d and even 3-d histograms.
> > This facility does not support log scales in the dev version, but
> > this will work in the released version.
> >
> > Rene Brun
> >
>
> Hi Rene,
>
> This is really great that the mause-zoom possibility is added.
> I tryed it (but) without success on the 2.20/01 (Debian) version
> installed in GSI. I used a 1-d hist with a linear y-axis, and the
> left mause-button. I could either displace the spectrum
> (cross cursor) or nothing happened (arrow cursor).
> Did I miss something ?
>

Hi Faouzi,
This functionality was implemented in 2.20/00. I then implemented
support for log scales in 2.20/02 and also improved the user interface
at the same time.
I have no problems with it.

> I have 2 suggestions
> 1. The 2nd mause-button (in the 3 button-mause) is without any
> graphical fonction. Why not affecting the zooming function to.
> 2. Is it possible to use it also (one click) as TPad::cd()
>

The middle button is already used to set the current pad.
Zooming in a pad requires, in general, additional functions.
We are showing many examples of zooming in a pad (with the rubber-band
box) for the following Event Displays.
- The Alice Event Display
- The MINOS event display (derived from Alice) by George Irwin
- The very nice "demo event display" posted by Paul Nord at URL:

http://physics.valpo.edu/staff/pnord/e614/eventdisplaydemo/

Rene Brun