Sorry, forgot the subject.... mjb On Mon, 24 Jan 2000, Mark James Boland wrote: > Hello root users, > > Could someone help me to plot a continuos function f(x) on top of a > discrete 2D histogram (similar to the cut shown in > http://root.cern.ch/root/html/gif/hprexample.gif). I would like to do > something like: > > Tformula *f1 = new TFormula("f1","x"); > TH2F *h2 = new TH2F("h2","hello",10,0,10,10,0,10); > h2->Draw(); > f1->Draw("same"); > > Can this be done, even if it is using the postscript class to overlay the > two plot in a file and view it with ghostview? > > Thanks, > Mark > ___________________________________________________________________ > Mark Boland markjb@physics.unimelb.edu.au > School of Physics PhD Student > The University of Melbourne Photonuclear Group > Fax: +61 3 9347 4783 Ph: +61 3 9344 5426 > ___________________________________________________________________ Mark Boland markjb@physics.unimelb.edu.au School of Physics PhD Student The University of Melbourne Photonuclear Group Fax: +61 3 9347 4783 Ph: +61 3 9344 5426
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:17 MET