Problem with TGraph

From: Hajo Molegraaf <hjausenet_at_hotmail.com>
Date: Mon, 03 Apr 2006 14:57:17 +0200


Hi,
The following macro gets my root to hang:

TVectorD v1,v2;
v1.ResizeTo(2);
v2.ResizeTo(2);
for( int i = 0; i < v1.GetNrows(); ++i )
{

    v1[i] = i;
    v2[i] = 2.0001e8;
}
TGraph* gr = new TGraph(v1,v2);
gr->Draw("A*");

If I change the '2.0001e8' into '2e8' or smaller, it works. Any larger value gives this problem.

root version:
Version 5.11/01 3 March 2006
Compiled on 3 April 2006 for linux with thread support. CINT/ROOT C/C++ Interpreter version 5.16.10, March 30, 2006

What am I doing wrong?

Hajo Molegraaf.



Nieuw op MSN Messenger 7.5: Dynamische achtergronden http://www1.imagine-msn.com/Messenger/Audio.aspx Received on Mon Apr 03 2006 - 14:57:27 MEST

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:31:58 MET