Re: [ROOT] Divide pad problem

From: Rene Brun (Rene.Brun@cern.ch)
Date: Thu Feb 19 2004 - 13:33:29 MET


see $ROOTSYS/tutorials/zones.C

Rene Brun

Michael Groys wrote:
> 
> Hello,
> I want to create plot with matrix of histograms.
> Each one of them has the same x and y axis ranges.
> So I want to plot axis labels once in the right side
> and once in the bottom side of the matrix. In
> addition I don't want margins between internal histograms.
> 
> So I'm doing something like:
> 
> f = new TF1("f", "x", 0, 1);
> c = new TCanvas;
> c->Divide(1,2,0,0);
> c->cd(1);
> gPad->SetBorderStyle(0);
> gPad->SetBorderSize(0);
> c->cd(2);
> gPad->SetBorderStyle(0);
> gPad->SetBorderSize(0);
> c->cd(1);
> gPad->SetBottomMargin(0);
> f->Draw();
> 
> In this case I got in the canvas truncated '0' label.
> in y axis. Moreover in the postscript file this
> label will not appear at all.
> So my question is:
> How I can avoid this problem, or may be there is
> another way of drawing such matrix of histograms?
> 
> Thanks in advance and best regards, Michael.
> 
> PS. I' using root version 3.10/02



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:06 MET