Plotting graphs

i am supposed to see 3 plots:

 gPad->SetLogy(1);

 av1->SetMarkerStyle(7);
 av1->SetMarkerColor(kBlue);
 av1->SetMarkerSize(1);

 av2->SetMarkerStyle(7);
 av2->SetMarkerColor(kRed);
 av2->SetMarkerSize(1);

 av3->SetMarkerStyle(7);
 av3->SetMarkerColor(kGreen);
 av3->SetMarkerSize(1);

 TMultiGraph *mgp = new TMultiGraph();
 mgp->SetTitle("dcs of ep, eq_s, eq_c (bare mass); Transfer Momentum in GeV^2; Differential Cross Section");
 mgp->SetMinimum(1.e-6);
 mgp->SetMaximum(1.e0);
 mgp->Add(av1,"PL");
 mgp->Add(av2,"PL");
 mgp->Add(av3,"PL");
 mgp->Draw("a");

 avf->SetMaximum(1.e0);
 can->Modified();
 can->Update();

what could be wrong here?
your help is appreciated… :slight_smile:

i got my mistake… it worked already… sorry :slight_smile:

Please post your solution in case it can help others :smiley:

it was just a mis-declaration that I made… i set a parameter to a function not found within the loop :slight_smile:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.