Plotting two data sets in the same frame: TH1F *frame = new TH1F(......); frame->Draw(); TGraphErrors *gr1 = ..... gr1->->Draw("LP"); TGraphErrors *gr2 = ..... gr2->->Draw("LP"); TLegend *leg = new TLegend(0.8,0.45,0.9,0.55); leg->SetTextSize(0.035); leg->AddEntry(gr1,"...","p"); leg->AddEntry(gr2,"...","p"); leg->SetHeader("....."); leg->Draw() > X-Authentication-Warning: pcroot.cern.ch: majordomo set sender to owner-roottalk@root.cern.ch using -f > From: pdupre@labs.polycnrs-gre.fr (Patrick Dupre LCMI) > Subject: plot points with different aspect > To: roottalk@pcroot.cern.ch (root) > Date: Fri, 31 Mar 2000 18:33:04 +0200 (MEST) > MIME-Version: 1.0 > Content-Transfer-Encoding: 7bit > > Hello, > > I use a TGraph to plot a set of points, then I would like to plot > (surperimposed) another set of points (x,y) but with a different aspect for > each points, let say "1" for point # 1, "2" for point #2, etc..... > How can do this ? > > -- > --- > ============================================================================== > Patrick DUPRE | | Tel: (33 4) 76-88-78-51 > CNRS/LCMI (GHMFL) | | Fax: (33 4) 76-85-56-10 > 25 Rue des Martyrs, BP 166 | | http://eschyle.polycnrs-gre.fr > F-38042 GRENOBLE Cedex 09 | | email: pdupre@polycnrs-gre.fr > ============================================================================== Eddy
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:22 MET