Skip to content

Commit

Permalink
Merge pull request #43 from blinkseb/fix_ratio
Browse files Browse the repository at this point in the history
Fix ratio drawing with ROOT 6.06
  • Loading branch information
swertz committed Jan 19, 2016
2 parents c0fb9ed + 882f5ac commit d54641a
Show file tree
Hide file tree
Showing 9 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/TH1Plotter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ namespace plotIt {
h_low_pad_axis->GetYaxis()->SetNdivisions(505, true);
h_low_pad_axis->GetXaxis()->SetTickLength(0.07);

h_low_pad_axis->Draw("P E X0");
h_low_pad_axis->Draw();

std::shared_ptr<TGraphAsymmErrors> ratio = getRatio(h_data.get(), mc_histo_stat_only.get());
ratio->Draw("P same");
Expand Down Expand Up @@ -482,7 +482,7 @@ namespace plotIt {
h_systematics->Draw("E2");
}

h_low_pad_axis->Draw("P E X0 same");
h_low_pad_axis->Draw("same");

if (plot.fit_ratio) {
float xMin, xMax;
Expand Down Expand Up @@ -537,7 +537,7 @@ namespace plotIt {
}
}

h_low_pad_axis->Draw("P E X0 same");
h_low_pad_axis->Draw("same");
ratio->Draw("P same");

// Hide top pad label
Expand Down
Binary file modified test/golden/default_configuration_1column_legend.pdf
Binary file not shown.
Binary file modified test/golden/default_configuration_2columns_legend.pdf
Binary file not shown.
Binary file not shown.
Binary file modified test/golden/default_configuration_3columns_legend.pdf
Binary file not shown.
Binary file modified test/golden/default_configuration_lines.pdf
Binary file not shown.
Binary file modified test/golden/default_configuration_lines_inline_style.pdf
Binary file not shown.
Binary file modified test/golden/default_configuration_no_ratio.pdf
Binary file not shown.
Binary file modified test/golden/default_configuration_ratio.pdf
Binary file not shown.

0 comments on commit d54641a

Please sign in to comment.