Hello!
When executing a macro an excerpt from which is shown below, I get no
horizontal end bars on the error bars, although I have used
SetEndErrorSize(10) in rootlogon.C (and verified it in the macro via
gStyle->GetEndErrorSize()). The values are drawn properly, error bars
are shown, too.
// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
// Code snippet:
TH1D *histos[2][12][6];
// **************************************************
// [ reading the histograms with errors from a file ]
// **************************************************
for(unsigned obs_cnt=Ann; obs_cnt<=Ask; obs_cnt++) {
linestyle=1;
asymm_corr_nocorr_graph->cd(panel++);
asymm_corr_nocorr_legend[obs_cnt]=new TLegend(0.57, 0.8, 1, 1);
asymm_corr_nocorr_legend[obs_cnt]->AddEntry(histos[goodpico][input_bc][obs_cnt],
"A", "PL");
histos[goodpico][input_bc][obs_cnt]->SetLineStyle(linestyle++);
histos[goodpico][input_bc][obs_cnt]->SetMarkerStyle(24);
histos[goodpico][input_bc][obs_cnt]->Draw();
histos[wrongpico][input_bc][obs_cnt]->SetLineStyle(linestyle++);
asymm_corr_nocorr_legend[obs_cnt]->AddEntry(histos[wrongpico][input_bc][obs_cnt],
"B", "PL");
histos[wrongpico][input_bc][obs_cnt]->SetMarkerStyle(25);
histos[wrongpico][input_bc][obs_cnt]->Draw("SAME");
histos[goodpico][input_nbc][obs_cnt]->SetLineStyle(linestyle++);
asymm_corr_nocorr_legend[obs_cnt]->AddEntry(histos[goodpico][input_nbc][obs_cnt],
"C", "PL");
histos[goodpico][input_nbc][obs_cnt]->SetMarkerStyle(28);
histos[goodpico][input_nbc][obs_cnt]->Draw("SAME");
asymm_corr_nocorr_legend[obs_cnt]->Draw();
}
asymm_corr_nocorr_graph->Update();
}
// <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Thank you for suggestions,
Kay
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:12 MET