Dear all,
Is there any way to remove horisontal ticks at the ends of the vertical error bars for
TGraphAsymmErrors::Draw(TString option="")
what the “option” should be ?
the manual refers to :
TGraph::PaintGraph
which does not say if there is any way to do what I want.
thanks
Igor
my code and pdf are attached
#include "TGraphAsymmErrors.h"
TGraphAsymmErrors *graph;
void test_tgrapherrors()
{
graph=new TGraphAsymmErrors(1);
graph->SetPoint(0, 1., 1.);
graph->SetPointError(0, 0., 0., 0.1, 0.2);
TH1D* plot=new TH1D("plot","plot",10,0.,2.);
plot->SetMinimum(0.);
plot->SetMaximum(2.);
plot->Draw();
graph->SetMarkerStyle(20);
graph->SetMarkerColor(99);
graph->SetLineColor(99);
graph->Draw("E0pSAME");
}
c1.pdf (12.8 KB)