I have a TGraph2D which is used to draw a 3D surface.
TGraph2D* BSeaLevel = new TGraph2D(360*720);
//Fill TGraph
BSeaLevel->Draw();
I then try to draw points from a TTree onto the same set of axes by the following
TTree* tTree = new TTree(“tTree”, “tTree”);
tTree->Draw(“latitude:longitude:z”, “( C )*(C != 0)”, “textsame”);
I use "textsame" in the hope that I could easily see the data from the TTree whilst it is on the same set of axes as BSeaLevel. However, I cannot see the data from the tree. Now, I know that the ranges are the same, and therefore the data from both the tree and the graph should not be out of range.
Hi,
It turns out by switching the TGraph2D and TTree, it fixes the problem.
Appreciate the help, but it is weird that it didn’t work the other way round.