Re: middle mouse button

Rene Brun (Rene.Brun@cern.ch)
Tue, 22 Jun 1999 13:07:16 +0000


Hi Valeri,
The middle button is used to pop objects on the pad.
Unfortunately in the case of your example, you are poping the
TPolyMarker object used to draw the scatter plot beyond the dummy
histogram used to set the scale.
You can see the current order of objects in the pad by doing
c1->ls(); //if c1 is your current pad.
To get the polymarker object on top again, you can do
c1->GetPrimitive("TPolyMarker")->Pop();

Rene Brun

Tioukov Valeri wrote:
>
> Hi Rene,
>
> One more question about mouse. If I do:
> root> TreeTK->Draw("fZ:fY")
>
> and after click on the plot by the middle mouse button - data (dots) are
> dissapeared from the plot. Is it normal?
>
> If I do instead:
>
> root> TreeTK->Draw("fZ:fY>>h2")
> root> h2->Draw()
>
> nothin happend on the middle button click (just pad selection - as
> expected).
>
> Regards
> Valeri