Hi Yuriy, Use getchar in a macro if you want to control the next plot with ,eg a CR or any other character. Use TPad::WaitPrimitive if you want to click on the canvas. An example below { gROOT->Reset(); TCanvas c1("c1"); TFile f("hsimple.root"); hpx.Draw(); gPad->WaitPrimitive(); hpxpy.Draw(); gPad->WaitPrimitive(); hprof.Draw(); gPad->WaitPrimitive(); ntuple.Draw("px"); gPad->WaitPrimitive(); ntuple.Draw("py"); gPad->WaitPrimitive(); ntuple.Draw("pz"); gPad->WaitPrimitive(); } Rene Brun On Wed, 14 Nov 2001, Shitov Yuriy wrote: > Hi, rooters > > I want to plot several separate histogram step by step on the same pad. > What is the > simplest way to make stops (pauses) between different plots in order to see > > intermediate results and then continue to work clicking mouse button or > keyboard key? > In PAW I do it introducing LOCATE statement between plot commands. It is > very comfortable, > because I can check some coordinates on the current plot and then go to > the next picture clicking > right mouse button. How can I organize something similar in the interactive > ROOT session? > > Best wishes, > Yuriy. > >
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:08 MET