Re: [ROOT] How to view "myCanvas.C" ?

From: Rene Brun (Rene.Brun@cern.ch)
Date: Tue Aug 19 2003 - 13:32:00 MEST


Hi Zaldy,

When saving the canvas as canvas.C, you can view the canvas again with
  .x canvas.C

When saving the canvas as a Root file, do
  TFile f("canvas.root");
  canvas.Draw();

Rene Brun

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
> --
> 
> --------------------------------------------------------
>                    Zaldy A. Nawang
>                    PS Users Room 2
>                    Yon Gokan,
>                    E362, Neutrino Group,
>                    IPNS, KEK,
>                    Japan
> 
>                    e-mail: zaldy@neutrino.kek.jp
>                    Tel. No. : (81) 029864 - 5387
> --------------------------------------------------------



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:14 MET