Hi Selim,
You will find below an example of macro showing how to divide a canvas
and play with the margins.
Rene Brun
{
gROOT->Reset();
TCanvas c1("c1","multipads",700,900);
gStyle->SetPadBorderMode(0);
Float_t small = 1e-5;
c1.Divide(2,2,small,small);
TH2F h1("h1","test1",10,0,1,20,-1,1);
TH2F h2("h2","test2",10,0,1,20,-1,1);
TH2F h3("h3","test3",10,0,1,20,-1,1);
TH2F h4("h4","test4",10,0,1,20,-1,1);
c1.cd(1);
gPad->SetBottomMargin(small);
gPad->SetRightMargin(small);
h1.Draw();
c1.cd(2);
gPad->SetBottomMargin(small);
gPad->SetRightMargin(small);
gPad->SetLeftMargin(small);
h2.Draw();
c1.cd(3);
gPad->SetTopMargin(small);
gPad->SetRightMargin(small);
h3.Draw();
c1.cd(4);
gPad->SetTopMargin(small);
gPad->SetRightMargin(small);
gPad->SetLeftMargin(small);
h4.Draw();
}
Selim Issever wrote:
>
> Dear all,..
>
> another question I have:
> In paw you could do "zone 2 2",
> draw 4 histos and would get such a picture
> (the borders below are the histogram borders)
>
> +---+ +---+
> | | | |
> | | | |
> +---+ +---+
>
> +---+ +---+
> | | | |
> | | | |
> +---+ +---+
>
> I know, that you can create 4 pads and do the same in root,
> but how do you tell root that there should be no space between
> the histos. In paw:
>
> set xwin 0
> set ywin 0
>
> +---+---+
> | | |
> | | |
> +---+---+
> | | |
> | | |
> +---+---+
>
> If plotting 5 histograms vs. time one doesnt need 5 time axis's,..
> the space is much more needed for the plots itself,..
>
> Thanks a lot for any help!
> Best Wishes,
> Selim
>
> --
> Selim Issever | Tel: 040 8998-2843 +- Never argue with a fool, -----
> DESY-F15 | Fax: 040 8998-4033 +- people might not know the ----
> Notkestr. 85 | selim.issever@desy.de +- difference. ------------------
> 22603 Hamburg/Germany | http://www.physik.uni-dortmund.de/~issevers
> -----------------------------------------------------------------------
> This signature was automatically generated with Signify v1.04.
> For this and other cool products, check out http://www.verisim.com/
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:43 MET