Bug in TGraphs to/from file ??

From: Martin Woudstra (Martin.Woudstra@cern.ch)
Date: Mon Dec 01 1997 - 14:56:39 MET


Dear rooters,

The Y-scale in TGraphs seems to get lost if written to file.

I am filling TGraphs in my standalone program using root routines,
which I then save to a root file with the command:

 pGraph->Write(pGraph->GetName());

When I then read it back into root I find the graph in the file,
but when I try to Draw it with

TFile f("tracks.root");
TGraph* gY = (TGraph*)f.Get("Graph BML wrt BIL (2,2)");
TCanvas *cgy = new TCanvas("Example Graph","Example Graph");
gY->Draw("A*");

No points are shown, because the Y-axis scale is wrong (-1 .. +1).
The x-axis scale is Ok. If I change the Y-scale (-50 .. +10),
then the points appear again.

This seems to be a bug to me.

Best regards,

Martin.



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:26:22 MET