Dear all,
I am trying to improve the visualization of the following canvas:
I want to reduce the margins between each TPad (in order to increase the dimension of each histogram) and to fill the OptStats panels with a transparent color (see the upper histogram on the left), something like this:
I am using the following (trivial) code.
Can you suggest me a way to perform this task?
Thank you a lot,
Marco.
[code]#if !defined(CINT) || defined(MAKECINT)
#include <stdio.h>
#include <TCanvas.h>
#include <TFile.h>
#include <TH1.h>
#include <TH2.h>
#include <TStyle.h>
#include <TLatex.h>
#include <TLegend.h>
#include <TLine.h>
#include <TMath.h>
#include <TPad.h>
#include <TASImage.h>
#include <TSystem.h>
#include <TDirectory.h>
#endif
void Pedestal_histos(){
gStyle->SetOptStat(1);
gStyle->SetOptTitle(0);
gStyle->SetCanvasColor(10);
gStyle->SetFillStyle(0);
gStyle->SetStatColor(3);
gStyle->SetStatW(0.35);
gStyle->SetStatFontSize(0.1);
gStyle->SetStatX(.890);
gStyle->SetStatY(.890);
TFile *infile = TFile::Open("/home/leoncino/ZDC/165304_pedestalReference.root");
TH1F PedZNAhg_0 = (TH1F)infile->Get(“PedZNAhg_0”);
TH1F PedZNAhg_1 = (TH1F)infile->Get(“PedZNAhg_1”);
TH1F PedZNAhg_2 = (TH1F)infile->Get(“PedZNAhg_2”);
TH1F PedZNAhg_3 = (TH1F)infile->Get(“PedZNAhg_3”);
TH1F PedZNAhg_4 = (TH1F)infile->Get(“PedZNAhg_4”);
TCanvas *c1 = new TCanvas(“c1”,“PEDESTALS: ZNA-ZNC-ZPA-ZPC (HIGH RANGE, IN-TIME)”,1600,1200);
c1->Divide(5,4);
c1->cd(1); PedZNAhg_0->Draw();
c1->cd(2); PedZNAhg_1->Draw();
c1->cd(3); PedZNAhg_2->Draw();
c1->cd(4); PedZNAhg_3->Draw();
c1->cd(5); PedZNAhg_4->Draw();
[/code]