Re: [ROOT] making a histogram frame smaller

From: Rene Brun (
Date: Sat Jul 24 2004 - 07:29:16 MEST

Hi Ken,

Use gPad->SetLeftMargin(margin); with eg margin = 0.15

When you have a problem of this type, use the graphics editor
to modify one or more settings (like the pad left margin)
and generate the code via the "Save As canvas.C".
You should see the code corresponding to your current settings.

Rene Brun

On Fri, 23 
Jul 2004, 
Ken Bloom wrote:

> Dear ROOT,
> 	This seems like an elementary question to me, but I can't find the 
> answer anywhere; my apologies if I missed it.
> 	I'm plotting histograms, and I want to enlarge the fonts on the axis 
> labels and titles.  Easy enough, but then they start to run outside the pad, 
> and I can't see them.  It looks like the solution would be to shrink the 
> histogram frame -- something I think is the TFrame.  Then the pad would stay 
> the same size, and I'd have more room for my lettering.  But I cannot figure 
> out who actually owns the frame -- the histogram or the pad -- and then 
> despite fooling with SetBorderSize, I can't seem to actually change the size 
> of the frame.  Can someone help?  Thanks, best wishes.
> 						Ken
> ------------------------------------------------------------------------------
> Ken Bloom, Karma Adjuster                                Department of Physics
> 734-763-2329 / 734-936-1817 (fax)                       University of Michigan

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