Hi Hongquan, If you want to see in the same canvas both the zoomed and unzoomed histogram h, proceed as follow: - h.Draw(); // draw histogram in the canvas - create a new pad in this canvas (editor or command) - cd to this new pad. (click with middle mouse button in the new pad) - h.DrawCopy(); // draw a copy of h in the new pad Now, you can zoom independently the histogram in both pads. Rene Brun Hongquan Niu wrote: > > Hi, > > I know we can use mouse to zoom in the existing histogram > and create a maybe smaller pad or something else with zoomed in > histogram. So both histgrams appear on the canvas. I tried > but never success. Can anyone tell me how to do that? > > Thanks, > Hongquan > > On Tue, 22 Jun 1999, Rene Brun wrote: > > > Hi Valeri, > > You are probably clicking on the wrong place. > > You must see the "hand cursor" if you really point to an axis. > > You can also try clicking with the right mouse button to check that > > the pop-up menu refers to a TAxis object. > > > > Rene Brun > > > > Tioukov Valeri wrote: > > > > > > Hi rooters, > > > > > > I tried to zoom the histogram by mouse as was anounceed in > > > > > > http://root.cern.ch/cgi-bin/print_hit_bold.pl/root/roottalk/roottalk98/2349.html > > > "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." > > > > > > by Rene, but without success: left mouse button has no actions in case of > > > 2-d histogram and has "move histogram" action in 1-d case. > > > > > > What is wrong? > > > > > > I use root 2.22/04 on RH6.0 > > > > > > Regards > > > Valeri > >
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:34 MET