Hi,
I'm new in ROOT and I'm having a problem on drawing a graph with colored
error bars.
Here it goes a little piece of my macro:
*TCanvas *c1 = new TCanvas("c1","Differential Cross Section",200,10,700,500);
c1->SetFillColor(0);
c1->SetLogy();
TGraphErrors *gr1 = new
TGraphErrors(npt_19,q2_exp_pp19,dsdt_exp_pp19,erX_dsdt_exp_pp19,erY_dsdt_exp_pp19);
TGraphErrors *gr2 = new
TGraphErrors(npt_23,q2_exp_pp23,dsdt_exp_pp23,erX_dsdt_exp_pp23,erY_dsdt_exp_pp23);
gr1->SetMarkerStyle(20); gr1->SetMarkerSize(0.6); gr1->SetMarkerColor(2); gr2->SetMarkerStyle(20);
TMultiGraph *mg = new TMultiGraph();
mg->Add(gr1); mg->Add(gr2); mg->Draw("APZ");*
In the output only the central values gets different colors.
Could anyone help me with this?
Appreciate any help,
Daniel.
Tel: +55 (19) 3521-5535 Cel: +55 (19) 9366-4227Received on Tue Mar 22 2011 - 19:28:42 CET
-----------------------------------------------------------------------------------------
This archive was generated by hypermail 2.2.0 : Tue Mar 22 2011 - 23:50:01 CET