Hi,
the attached script makes a simple TGraph from a TF1 and saves it to a root file. If I open the resulting file in a TBrowser and double- click on the graph, I get a plot but no axes etc. I know that I could set my plot options from the command line with f1->Draw("AP*"), but is it possible to set draw options from my script so that someone else who recieves the file can just double click on the graph and see the options I want (eg axes, markers etc). I've trawled the online documentation and header files and can't find it.
thanks for your help
Peter
rootver 5.16/00 Max OSX 10.4.10
{
gr = new TGraph(new TF1("f1", "sin(x)", 0, 1));
TFile f("out.root", "recreate");
gr->Write();
f.Close();
}
Peter Cogan
skype name: petercogan
skypein number: +1 520 413 1472
Steward Observatory
933 N. Cherry Avenue
Tucson
Arizona 85719
Phone: +1 520 670-5749
Fax: +1 520 670-5714
Received on Thu Aug 09 2007 - 12:41:31 CEST
This archive was generated by hypermail 2.2.0 : Thu Aug 09 2007 - 23:50:02 CEST