diff --git a/madanalysis/layout/merging_plots.py b/madanalysis/layout/merging_plots.py index 7589e27e..72bd85a0 100644 --- a/madanalysis/layout/merging_plots.py +++ b/madanalysis/layout/merging_plots.py @@ -323,7 +323,7 @@ def DrawROOT(self,DJRplots,dataset,filenameC,output_files,index): outputC.write(' legend->SetFillColor(0);\n') outputC.write(' legend->SetTextSize(0.04);\n') outputC.write(' legend->SetTextFont(22);\n') - outputC.write(' legend->SetY1(TMath::Max(0.15,0.97-0.10*legend->GetListOfPrimitives()->GetSize()));\n') + outputC.write(' legend->SetY1(std::max(0.15,0.97-0.10*legend->GetListOfPrimitives()->GetSize()));\n') outputC.write(' legend->Draw();\n') outputC.write('\n') diff --git a/madanalysis/layout/plotflow.py b/madanalysis/layout/plotflow.py index b8a7bf6a..fcd5ab89 100644 --- a/madanalysis/layout/plotflow.py +++ b/madanalysis/layout/plotflow.py @@ -512,7 +512,7 @@ def DrawROOT(self,histos,scales,ref,irelhisto,filenameC,outputnames): outputC.write(' legend->SetFillColor(0);\n') outputC.write(' legend->SetTextSize(0.05);\n') outputC.write(' legend->SetTextFont(22);\n') - outputC.write(' legend->SetY1(TMath::Max(0.15,0.97-0.10*legend->GetListOfPrimitives()->GetSize()));\n') + outputC.write(' legend->SetY1(std::max(0.15,0.97-0.10*legend->GetListOfPrimitives()->GetSize()));\n') outputC.write(' legend->Draw();\n') outputC.write('\n')