Re: Overriding canvas logarithm minimum choice

From: Axel Naumann <Axel.Naumann_at_cern.ch>
Date: Sat, 23 May 2009 01:15:16 +0200


Hi James,

gPad->GetListOfPrimitives() will contain it. If you have many canvases / pads then gPad might not point to the right one; gROOT->GetListOfCanavses() will allow you to find it. Let me know if you need more details.

Cheers, Axel.

On 2009-05-23 01:10, James Jackson wrote:
> Hi Axel,
>
> As the histogram was made somewhere in the depths of RooFit, I don't
> have a pointer to it in my code. Is there a way to extract this from the
> canvas at all?
>
> Regards,
> James.
>
> On 23 May 2009, at 00:05, Axel Naumann wrote:
>

>> Hi James,
>>
>> you should be able to set it the same way you'd do it for a linear axis,
>> using TH1::SetMinimum().
>>
>> Cheers, Axel.
>>
>>
>> On 2009-05-23 00:26, James Jackson wrote:
>>> Hi,
>>>
>>> If I have set a canvas to plot with a logarithmic scale (c->setLogy(1)),
>>> is there any way I can override the axis range that is chosen by
>>> default? At this point I don't have access to the source histogram (it
>>> was created somewhere in the depths of RooFit).
>>>
>>> Regards,
>>> James.
>>>
>>>
>>

>
>
Received on Sat May 23 2009 - 01:15:28 CEST

This archive was generated by hypermail 2.2.0 : Sun May 24 2009 - 11:50:02 CEST