Hi, if you save as "myCanvas.C" you can run root and type .x myCanvas.C and you ll get the canvas drawn again. This is useful if you changed attributes of elements in the canvas interactivly (like text sizes, colors etc.) to make it look nice for a presentation say. You may also edit myCanvas.C to beatify things further. Also a good way to learn how to write root macros. if you save as "myCanvas.root" you all get a root file. again run root and do: TFile f("myCanvas.root"); f.ls(); myCanvas->Draw(); // if canvas name was "myCanvas" Cheers Otto On Tue, 19 Aug 2003, zaldy wrote: > > Dear ROOTers, > > Sorry if this is too easy. > > But I have never used the saving of the > Canvas or Pad as "myCanvas.C". > Usually, SaveAs "*.ps", "*.eps", or "gif". But I didnt save yet as ".root" > or "*.C" > > I just want to explore the use of this. > When is the feature (*.C or *.root) useful? > > If the canvas is save as "myCanvas.C", > how (what is the command) do we view the original picture using the > myCanvas.C? > > Thanks > -- Otto Schaile Sektion Physik, LMU Muenchen Phone: +49 89 289 14070 Am Coulombwall 1, D-85748 Garching, Germany GSM: +49 160 1553598 FAX: +49 89 289 14072 EMail: Otto.Schaile@Physik.Uni-Muenchen.DE
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:14 MET