Hi everybody,
I have I problem when I try to set axis title on my TGraph2D (I’m under windows). I tried the code below but it gives me a strange image (see the picture):
Thanks for your great help! I tried with many points and it works eccept with theses “non reasonables data”. But the problem is that the data that I will use will be “non reasonable”. (It’s a part of my application, it will show molecules in the space). So I would like to know if exists a way to correct it?
Another time thank you very much.
Ah, sorry, I misunderstood. Still, setting the same point (0,0) to two different values does seem very unreasonable to me, at least for a TGraph2D, molecule or not. It somehow defeats the purpose of a TGraph2D (as an interpolated surface defined by unevenly spaced points).
I would look for a class that is better suited for your molecules…
Thomas
g1->SetPoint(2,0,0,1);
g1->SetPoint(5,0,0,-1); // define value of (0,0) again!!
Hi Thomas,
Thank you for your explanation and interest, you are right TGraph2D is not the best thing to molecules’s position in the space (I forget this particular, TGraph is for surfaces , sorry).
So I would thank you very much if you find somenthing better than TGraph2D.
Cheers,
Louis
I’ve attached two files - the first is a small TFile containing a TTree with some data. The second is a short script which just plots three of the parameters against each other and then adds titles to the axes.