Hi all,
I am trying to plot a data file that has three columns using TGraph2D. The code is:
TGraph2D *g = new TGraph2D("Myfile.dat");
gStyle->SetPalette(1);
g->Draw("surf1");
The file .dat has 169 rows and contains negative values.
But it is generating an error
Warning: template pair duplicate definition /usr/local/root/cint/cint/stl/_pair.h:31:
Warning: template reverse_iterator duplicate definition /usr/local/root/cint/cint/stl/_iterator.h:269:
Warning: template allocator duplicate definition /usr/local/root/cint/cint/stl/defalloc.h:134:
Warning: template vector duplicate definition /usr/local/root/cint/cint/stl/_vector.h:44:
Warning in <TROOT::Append>: Replacing existing TGraph2D: Graph2D (Potential memory leak).
Error in <TGraph2D::TGraph2D>: Cannot open file: resultados.dat, TGraph2D is Zombie
Error in <TGraph2D::Paint>: Empty TGraph2D
I don’t know what is the problem or what is missing??
Any suggestion is welcome?
Thanks for your attention.
Manuel