Skip to content

Commit 8ca048a

Browse files
committed
[Common] customize ratio plot draw option in ReferenceComparator
By default the histograms are drawn with error bars ("E" option), however there are cases where the user might want to hide the errors and draw the histograms with the "H" option, for example because the error bars are unreliable or unphysical. This can already be done by passing a custom draw option via the task configuration interface. However, the customized draw option is only passed to the current and reference histograms, but not to the ratio plot, which is always drawn with the "E" option. The commit extends the custom draw option also to the ratio histogram.
1 parent 70e7d07 commit 8ca048a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/Common/src/ReferenceComparatorPlot.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,8 +306,8 @@ class ReferenceComparatorPlotImpl1D : public ReferenceComparatorPlotImpl
306306
}
307307
mRatioPlot->SetLineColor(kBlack);
308308
mRatioPlot->SetStats(0);
309-
mRatioPlot->SetOption("E");
310-
mRatioPlot->Draw("E");
309+
mRatioPlot->SetOption(drawOption.c_str());
310+
mRatioPlot->Draw(drawOption.c_str());
311311
if (drawRatioOnly) {
312312
mRatioPlot->SetMinimum(0);
313313
mRatioPlot->SetMaximum(2);

0 commit comments

Comments
 (0)