RE: Resizing frames

From: Olivier Couet <Olivier.Couet_at_cern.ch>
Date: Fri, 8 Apr 2005 12:59:43 +0200


Can you send a simple macro reproducing the problem ?

Olivier

-- 
Org:    CERN - European Laboratory for Particle Physics.
Mail:   1211 Geneve 23 - Switzerland                     Mailbox: J25910

E-Mail: Olivier.Couet_at_cern.ch                            Phone:   +41 22
7676522
WWW:    http://cern.ch/Olivier.Couet/                    Fax:     +41 22
7670300

-----Original Message-----
From: Alberto Pulvirenti [mailto:alberto.pulvirenti_at_ct.infn.it] 
Sent: Friday, April 08, 2005 12:53 PM
To: Olivier Couet
Cc: ROOT Mailin List
Subject: Re: [ROOT] Resizing frames

This does not solve the problem, because the title is moved far away
from the axis and it fall outside the visible zone in the canvas.
I don't understand why the canvas field is not automatically re-arranged
in order to reduce the frame size to allow the title to appear.



Olivier Couet wrote:


>Hi Alberto,
>
>Change the title offset:
>
>histo->GetYaxis()->SetTitleOffset(0.1);
>
>Cheers, Olivier
>
>
>On Thu, 7 Apr 2005, Alberto Pulvirenti wrote:
>
>
>
>>Dear all,
>>
>>I have a problem with histogram drawing.
>>For some reasons, I need to draw axis titles quit huge, but when I
>>draw the histogram, they are cut off from the canvas, and the result
>>is that I cannot read them.
>>
>>I found description of a "TFrame" object which contains the histogram
>>plot, but I didn't manage to operate with it.
>>
>>I would like to understand if it is possible to change the position of

>>the frame, or if it is possible to resize it.
>>
>>In attachments, you see two pictures: first one is the plot as ROOT
draws it.
>>Second one is what I want to obtain, which I did moving the frame by
>>hand, while I would like to do this operation automatically.
>>
>>Someone can help me?
>>
>>Thansk and best regards
>>
>> Alberto
>>
>>
>>
>
>
>
Received on Fri Apr 08 2005 - 12:59:50 MEST

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:06 MET