Commit 2176a93a authored by Simon Spannagel's avatar Simon Spannagel
Browse files

GuiDisplay: allow log plots

parent 8019a947
...@@ -40,6 +40,7 @@ namespace corryvreckan { ...@@ -40,6 +40,7 @@ namespace corryvreckan {
TRootEmbeddedCanvas* canvas; TRootEmbeddedCanvas* canvas;
std::map<std::string, std::vector<TH1*>> histograms; std::map<std::string, std::vector<TH1*>> histograms;
std::map<TH1*, std::string> styles; std::map<TH1*, std::string> styles;
std::map<TH1*, bool> logarithmic;
std::map<std::string, TGTextButton*> buttons; std::map<std::string, TGTextButton*> buttons;
std::map<TRootEmbeddedCanvas*, bool> stackedCanvas; std::map<TRootEmbeddedCanvas*, bool> stackedCanvas;
TGHorizontalFrame* buttonMenu; TGHorizontalFrame* buttonMenu;
...@@ -64,6 +65,9 @@ namespace corryvreckan { ...@@ -64,6 +65,9 @@ namespace corryvreckan {
if(!stackedCanvas[canvas]) if(!stackedCanvas[canvas])
canvas->GetCanvas()->cd(i + 1); canvas->GetCanvas()->cd(i + 1);
std::string style = styles[histograms[canvasName][i]]; std::string style = styles[histograms[canvasName][i]];
if(logarithmic[histograms[canvasName][i]]) {
canvas->GetCanvas()->SetLogy(true);
}
if(stackedCanvas[canvas]) { if(stackedCanvas[canvas]) {
style = "same"; style = "same";
histograms[canvasName][i]->SetLineColor(i + 1); histograms[canvasName][i]->SetLineColor(i + 1);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment