Thanks @Wile_E_Coyote, it works. @couet could be this included so it can be called directly from dt->GetXaxis()->SetTitle("X-Axis"); without calling the histogram?
Yes but TH2D has many Setters. They all can be accessed as suggested before (via GetHistogram()) . I do not think it would make sense to duplicate all of them in TGraph2D… In the case of titles (which is a frequent case) an easy and efficient way already exists (as i explained it). I will update the doc to make it easier to find.
I agree. If it’s also included in the examples (here) will be useful, most of them do not have labels . I remembered the first time I saw how to set axis labels was like that and I kept using it. Thanks!