From 389090482aa97d8e5cfae4a1724229792ce7ec1f Mon Sep 17 00:00:00 2001 From: Vratislav Chudoba Date: Mon, 24 Jul 2017 18:00:36 +0300 Subject: [PATCH] TCanvas geometry for 6 panels fixed. --- macros/BeCorrPRC/rootlogon6panels.C | 35 ++++++++++++++++++----------- 1 file changed, 22 insertions(+), 13 deletions(-) diff --git a/macros/BeCorrPRC/rootlogon6panels.C b/macros/BeCorrPRC/rootlogon6panels.C index 3ab3633..e7308d6 100644 --- a/macros/BeCorrPRC/rootlogon6panels.C +++ b/macros/BeCorrPRC/rootlogon6panels.C @@ -1,3 +1,6 @@ +//#include "TStyle.h" + +void rootlogon6panels() { Info("rootlogonThesis.c", "This settings are used to make a nice pictures for PRC paper"); @@ -15,23 +18,31 @@ gStyle->SetOptStat(""); //canvas size and position - //one panel pictures - gStyle->SetCanvasDefW(1400); - gStyle->SetCanvasDefH(600); - gStyle->SetCanvasDefX(800); - gStyle->SetCanvasDefY(300); - - //two panel pictures -// gStyle->SetCanvasDefH(850); -// gStyle->SetCanvasDefW(975); -// gStyle->SetCanvasDefX(541); -// gStyle->SetCanvasDefY(232); + gStyle->SetCanvasDefX(85); + gStyle->SetCanvasDefY(224); + + gStyle->SetCanvasDefW(649); + gStyle->SetCanvasDefH(727); //marker attributes gStyle->SetMarkerStyle(20); gStyle->SetMarkerSize(0.1); gStyle->SetMarkerColor(1); +// gStyle->SetLabelOffset(0.55, "X"); + + gStyle->SetLabelSize(0.06, "X"); + gStyle->SetTitleSize(0.11, "X"); + gStyle->SetTitleOffset(0.55, "X"); + gStyle->SetTitleXSize(0.11); + + gStyle->SetLabelSize(0.06, "Y"); + gStyle->SetTitleSize(0.11, "Y"); + gStyle->SetTitleOffset(0.61, "Y"); + gStyle->SetTitleYSize(0.11); + + + //line attributes gStyle->SetHistLineWidth(1); // gStyle->SetHistLineWidth(2); @@ -39,8 +50,6 @@ gStyle->SetTitleBorderSize(0); - gStyle->SetTitleXSize(0.06); - gStyle->SetTitleYSize(0.06); gStyle->SetTitleFont(132, "X"); gStyle->SetTitleFont(132, "Y"); -- 2.18.1