Hi, -if you save as canvas.ps or eps outside Root, use a Postscript viewver, eg gv c1.ps -if you save as a gif file, you can use gif viewers like xv, any web browser, etc -if you save it as a C++ macro, eg c1.C, you can regenerate the canvas in a new session by executing root . .x c1.C -if you save it as a canvas.root file, eg c1.root, in a new session you can do root > TFile f("c1.root"); root > c1->Draw() see Users Guide for more information. Rene Brun tcli wrote: > > Dear root experts, > I have problems in saving and reading a canvas. In a root session, > after plotting histograms in a canvas with data from a root-tuple, I > tried to save it in a directory (under which I opened the root session). > But there are many different types of files: ROOT files (.root), Macro > files (.C), PostScript (.ps), Encapsulated PostScript (.eps), SVG (.svg) > and Gif file (.gif). So what kind of file I should choose to save the > canvas? And how to read that file after saving? I tried saving it as a > ROOT file as xx.root, but I don't know how to read the file (to view it > as a canvas of histograms, I mean) in my directory. > > Thanks in advances, > Lesley
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:13 MET