Convert a PDF saved root TH2 histogram to a root TH2

It might be impossible, but I was wondering if there is anyway to convert a TH2 histogram that was saved as PDF to a root TH2 histogram based on the colours of the COLZ option

Try: yourTH2->Draw("COLZ");

I think they mean they don’t have access to the TH2, only to an image (PDF) of the result of doing h->Draw("colz"). In that case, it is not possible to automatically get a TH2 from that; they would have to do some bin by bin colour matching to the colour scale, by hand in some image editor, or with some script; but even with this, the values will most probably not be exact.

Yeah I knew that it’s an impossible task, but I was hoping for some magic anyway :slight_smile:

Thank you very much for your reply!