Aesthetic improvment of TCanvas

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]

What concerns “margins” …

// see TStyle gStyle->SetPadBorderMode(...); gStyle->SetPadBorderSize(...); gStyle->SetPadLeftMargin(...); gStyle->SetPadRightMargin(...); gStyle->SetPadTopMargin(...); gStyle->SetPadBottomMargin(...); // see TPad:Divide c1->Divide(5, 4, ..., ...);
See:
http://root.cern.ch/root/html/TStyle.html
http://root.cern.ch/root/html/TPad.html#TPad:Divide

Thank you a lot! It works fine!

If you find any easy way to achieve the transparency of the “statistics box” please report here.

gStyle->SetStatColor(0);
gStyle->SetStatStyle(0);

(the later should be enough)

The “latter”?
It seems to me that the two lines are “equal”.

Oops my mistake … I edited the post …