26 double x[5] = {1,2,3,4,5};
27 double y1[5] = {1.0,2.0,1.0,2.5,3.0};
28 double y2[5] = {1.1,2.1,1.1,2.6,3.1};
29 double y3[5] = {1.2,2.2,1.2,2.7,3.2};
30 double y4[5] = {1.3,2.3,1.3,2.8,3.3};
31 double y5[5] = {1.4,2.4,1.4,2.9,3.4};
39 g1->SetLineWidth(3);
g1->SetMarkerColor(
kRed);
42 g4->SetLineWidth(3);
g4->SetMarkerColor(
kBlue);
45 g1->Draw(
"CA* PLC PFC");
46 g2->Draw(
"PC PLC PFC");
47 g3->Draw(
"PC PLC PFC");
48 g4->Draw(
"*C PLC PFC");
49 g5->Draw(
"PC PLC PFC");
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint const char y2
Option_t Option_t TPoint TPoint const char y1
R__EXTERN TStyle * gStyle
A TGraph is an object made of two arrays X and Y with npoints each.
void SetOptTitle(Int_t tit=1)
void SetPalette(Int_t ncolors=kBird, Int_t *colors=nullptr, Float_t alpha=1.)
See TColor::SetPalette.