Hi, If you do not have yet a canvas on the screen, do gROOT->SetBatch(kTRUE); if you have a canvas, TCanvas *canvas, do canvas->SetBatch(kTRUE); When running in batch mode, you can continue to call your scripts doing graphics and generate postscript, eg canvas->SetBatch(kTRUE); myhist->Draw(); canvas->Print("canvas.ps"); canvas->SetBatch(kFALSE); anotherhist->Draw(); //now on th screen Note that a canvas can be in batch mode and another canvas with graphics on the screen. Rene Brun On Sat, 1 Mar 2003, Ming Feng Gu wrote: > Hi, > > is it possible to turn off the graphical output on screen for a certain > period of time in the root interactive session, and turn it on later? > > I know that you can make the entire session without graphics with -b > option. What i am looking for is the equivelant of IDL's set_plot(), that > can switch between different graphical devices. > > Thanks > > ============================= > Ming Feng Gu > Center for Space Research > MIT, NE80-6083 > 617-258-5928 > mfgu@space.mit.edu > ============================= >
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:09 MET