Aihong Tang wrote: > Hi, > > How to make a graph visible and drawable just like a > histogram in the Browser? > > Thanks! > > Aihong Hi Aihong, I've only found 2 solutions to this problem : - Save the canvas where the graph is drawn in a TFile : TFile *f=new TFile("dummy.root","new") canvas->Write() f->Close() Then you can access the canvas by doing : TFile *f=new TFile("dummy.root","read") TCanvas *c1=new TCanvas() c1=(TCanvas*)f->Get("canvas") c1->Draw() In this case I can't use the browser either. I think it's due to the fact that the graph is a collection of many different objects : histogram to define the range, TGraphs, TCanvas, TText... So if you want everything you have to save the canvas. Then if you try to browse one of the components, you encounter problems cause the others are missing. -Do a postscript of your graph. When you try to browse it, ghostview is started. Hope this helps. Colin
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:44 MET