Draw TH2D and TGraph togethor with aitoff


ROOT Version: 6.14
Platform: ubuntu and macos
Compiler: gcc


I cannot draw TGraph and TH2D togethor with aitoff

I can convert TGraph to aitoff by my self, but I cannot draw it on a same TPad

I want to know how to do it

hist2D->Draw(“z AITOFF”);
graph->Draw(“P same”); //display nothing

by the way, option “colz” is OK.

I’m sure @couet will be able to answer this when he’s back from his trip in two weeks!

TGraph does not support the aitoff coordinates natively.
You will need to convert the graph coordinates into the aitoff ones as in the following example.

aitoff2.C (37.3 KB)