TGraphMultiErrors: fixed widith of systematic

Hello guys.

I try to set a fixed width of systematic using TGraphMultiErrors. But I only can
->Draw(Draw("PS same ; Z ; 5 s=0.3;")).
Actually, the bin width of the systematic will change based on x bin width.
Looking forwarding your help.

Best wishes.
Yao.

Hi,

We will need @couet to help with this one once he is back.

Thanks, looking forward the hlep from @couet

I do not understand what you are doing.
Can you provide a running macro reproducing the issue ?

Hi couet, @couet
Sorry to replay so late.

Actually, I am drawing a project using TGraphMultiErros.
Eg,

   c1->SetGrid();
   c1->GetFrame()->SetBorderSize(12);
   const Int_t np = 5;
   Double_t x[np]       = {0, 1, 3, 7, 14};
   Double_t y[np]       = {0, 2, 4, 1, 3};
   Double_t exl[np]     = {0.5, 0.5, 1.5, 2.5, 4.5};
   Double_t exh[np]     = {0.5, 0.5, 1.5, 2.5, 4.5};
   Double_t eylstat[np] = {1, 0.5, 1, 0.5, 1};
   Double_t eyhstat[np] = {0.5, 1, 0.5, 1, 2};
   Double_t eylsys[np]  = {0.5, 0.4, 0.8, 0.3, 1.2};
   Double_t eyhsys[np]  = {0.6, 0.7, 0.6, 0.4, 0.8};
   auto gme = new TGraphMultiErrors("gme", "TGraphMultiErrors Example", np, x, y, exl, exh, eylstat, eyhstat);
   gme->AddYError(np, eylsys, eyhsys);
   gme->SetMarkerStyle(20);
   gme->SetLineColor(kRed);
   gme->GetAttLine(0)->SetLineColor(kRed);
   gme->GetAttLine(1)->SetLineColor(kBlue);
   gme->GetAttFill(1)->SetFillStyle(0);
   gme->Draw("APS ; Z ; 5 s=0.5");

The result looks like below, the systematic have a widith which will is 1/2 to x error widith.
But I want to set a fixed widith (all systematic width is same in different points) for the systematic uncertainty. I just want to know how to set the correspoinding option in Draw();

Cheers
Liuyao

I am not the author of this class. have you seen the doc here:
https://root.cern/doc/master/classTGraphPainter.html#GP03d
?

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