Alexander Mann | 1 Jun 2010 19:38
Picon
Favicon

[ROOT] gStyle->SetErrorX(dx)

Hi,

the documentation http://root.cern.ch/root/html/TGraphPainter.html says:

"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 | 1 Jun 2010 21:59
Picon

Re: [ROOT] gStyle->SetErrorX(dx)

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> wrote:
Hi,

the documentation http://root.cern.ch/root/html/TGraphPainter.html says:

"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




Alexander Mann | 1 Jun 2010 22:18
Picon
Favicon

Re: [ROOT] gStyle->SetErrorX(dx)


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.html says:
>
>     "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 | 1 Jun 2010 22:28
Picon

Re: [ROOT] gStyle->SetErrorX(dx)

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.html says:

   "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 | 1 Jun 2010 22:33
Picon

Re: [ROOT] gStyle->SetErrorX(dx)

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.html says:

   "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
-------------
Sinéad Walsh | 1 Jun 2010 22:33
Picon
Picon

Re: [ROOT] Compiling ROOT 5.27 in ubuntu 10.04

Hi,

Thanks for the replies and letting me know I wasn't missing anything. It turns out the error was on my side. I thought I had 64-bit installed but in fact it is 32-bit. When running the ./configure command I copied in the first e-mail without 'linuxx8664gcc' everything works fine. I also tried using ./configure on its own but it looks like roofit is not enabled by default.

Thanks again,
Sinéad

suvayu ali | 1 Jun 2010 23:07
Picon
Gravatar

Re: [ROOT] gStyle->SetErrorX(dx)

On 1 June 2010 13:33, Dmitry Kotov <dmitriy.kotov <at> gmail.com> wrote:
> 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))
>>

I am not an expert, but I have successfully used this before.
Something like this,

TStyle *myStyle = new TStyle("StyleName","my style");
...
myStyle->SetErrorX(0.00);
...
gROOT->SetStyle("StyleName");

This got rid of the X error bars for TProfiles for me.

>> Cheers,
>> Dmitry
>>

GL
--

-- 
Suvayu

Open source is the future. It sets us free.

Alexander Mann | 1 Jun 2010 23:10
Picon
Favicon

Re: [ROOT] gStyle->SetErrorX(dx)


Hi,

OK, did you try calling gStyle->SetErrorX(0.0) directly, too?

cu,
Alexander

Am 01.06.2010 23:07, schrieb suvayu ali:
> On 1 June 2010 13:33, Dmitry Kotov<dmitriy.kotov <at> gmail.com>  wrote:
>> 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))
>>>
>
> I am not an expert, but I have successfully used this before.
> Something like this,
>
> TStyle *myStyle = new TStyle("StyleName","my style");
> ...
> myStyle->SetErrorX(0.00);
> ...
> gROOT->SetStyle("StyleName");
>
> This got rid of the X error bars for TProfiles for me.
>
>>> Cheers,
>>> Dmitry
>>>
>
> GL

suvayu ali | 2 Jun 2010 00:24
Picon
Gravatar

Re: [ROOT] gStyle->SetErrorX(dx)

Hi Alexander,

On 1 June 2010 14:10, Alexander Mann <amann <at> uni-goettingen.de> wrote:
>
> Hi,
>
> OK, did you try calling gStyle->SetErrorX(0.0) directly, too?
>

I just tried, it works as before. Hope this helps somehow.

> cu,
> Alexander
>
>
> Am 01.06.2010 23:07, schrieb suvayu ali:
>>
>> On 1 June 2010 13:33, Dmitry Kotov<dmitriy.kotov <at> gmail.com>  wrote:
>>>
>>> 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))
>>>>
>>
>> I am not an expert, but I have successfully used this before.
>> Something like this,
>>
>> TStyle *myStyle = new TStyle("StyleName","my style");
>> ...
>> myStyle->SetErrorX(0.00);
>> ...
>> gROOT->SetStyle("StyleName");
>>
>> This got rid of the X error bars for TProfiles for me.
>>
>>>> Cheers,
>>>> Dmitry
>>>>
>>
>> GL
>
>

--

-- 
Suvayu

Open source is the future. It sets us free.

Nicolas Arnaud | 2 Jun 2010 10:19
Picon
Picon

[ROOT] ErfcInverse


Hello,

A very basic comment: I think that in the documentation of the 
TMath::ErfcInverse function, the sentence "x must be  <-1<x<1" should be 
replaced by "x must be  <0<x<2".

I see this typo in 
http://root.cern.ch/root/html/TMath.html#TMath:ErfcInverse and 
http://root.cern.ch/root/html/src/TMath.cxx.html#m5Z1cC

Cheers,

Nicolas


Gmane