Re: gStyle->SetErrorX(dx)

From: Dmitry Kotov <dmitriy.kotov_at_gmail.com>
Date: Tue, 1 Jun 2010 16:33:12 -0400


btw, in fact you don't even need the zero-array thing. just put a "0" to the TGraphErrors in the place where you want to have 0-bars.
but still that doesnt answer your question)) sorry))

On Tue, Jun 1, 2010 at 4:28 PM, Dmitry Kotov <dmitriy.kotov_at_gmail.com>wrote:

> well, i never used SetErrorX myself
> you should wait for the expert's opinion))
>
> Cheers,
> Dmitry
>
>
> On Tue, Jun 1, 2010 at 4:18 PM, Alexander Mann <amann_at_uni-goettingen.de>wrote:
>
>>
>> Hi Dmitry,
>>
>> thanks for your reply.
>>
>> I know about the "zero-array method", but I'm wondering whether the much
>> easier method as described in the documentation works, because for me it
>> apparently doesn't, but maybe that's my fault?
>>
>> cu,
>> Alexander
>>
>>
>>
>> Am 01.06.2010 21:59, schrieb Dmitry Kotov:
>>
>>> Dear Alexander,
>>>
>>> If I understood you correctly, you need to get rid of error bars along
>>> x-axis in TGraphErrors.
>>> You should fill an zero-array with the number of elements equal to
>>> number of your data points.
>>> And then just put this array into your TGraphErrors stuff.
>>> In that case you don't need to use SetErrorX method at all.
>>>
>>> Cheers,
>>> Dmitry
>>>
>>> On Tue, Jun 1, 2010 at 1:38 PM, Alexander Mann <amann_at_uni-goettingen.de
>>> <mailto:amann_at_uni-goettingen.de>> wrote:
>>>
>>> Hi,
>>>
>>> the documentation http://root.cern.ch/root/html/TGraphPainter.htmlsays:
>>>
>>> "gStyle->SetErrorX(dx) controls the size of the error along x. dx =
>>> 0 removes the error along x."
>>>
>>> Does this method to get rid of the x-error bars work?
>>>
>>> cu,
>>> Alexander
>>>
>>>
>>>
>>>
>>>
>>
>
>

-- 
------------
Dmitry Kotov
Assistant-researcher
Saint-Petersburg Nuclear Physics Institute
Gatchina, Orlova Roscha, Russia
-------------
Received on Tue Jun 01 2010 - 22:33:39 CEST

This archive was generated by hypermail 2.2.0 : Tue Jun 01 2010 - 23:50:01 CEST