Re: Resizing frames

From: Alberto Pulvirenti <alberto.pulvirenti_at_ct.infn.it>
Date: Fri, 08 Apr 2005 12:53:08 +0200


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:53:19 MEST

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