TGraph2D close gaps

Hi,

I’ve set up a TGraph2D and I wonder why there is a gap in the surface.
Is this because of my data? And/or how can I avoid/close that?

And is there a possibility to set a title for axis?

Thank you!

It looks like your data gets out of the range of the TGrahp2D.
In that case that is no gap but a cut off.
To solve just increase the range of your left axix perhaps to 3000 and look if there is really a gap or if its just a cut off.

1 Like

Use TAxis::SetTitle:

graph->GetXaxis()->SetTitle("x-axis");
graph->GetYaxis()->SetTitle("y-axis");
graph->GetZaxis()->SetTitle("z-axis");
1 Like
2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.