Kai Yi <yik@fnal.gov> writes: > Hi, all experts, > I made a script file to project several 1D hist from a ntuple, between > these hist script, I want a command to save this hist to a ps or gif > file.(I can do it from the menu, but it is better if I can find a command > to put it in my script file). > Thanks in advance! > > Kai Yi Hi, you can save your plots by invoking SaveAs method on a canvas object. If you don't create one yourself say c1->SaveAs("plot.ps") to save the default canvas. http://root.cern.ch/root/htmldoc/TPad.html#TPad:SaveAs Jiri
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:49 MET