I’m trying to draw a TH1F histogram in a TImage object using the SetImage() method (similar to the tutorial hist2image.C).
However I can’t seem to understand how to do it. The documentation in this area of ROOT is very sparse. I managed to get the 1D representation of the data, with a colourpallet discribing the bins, but I would like to actually plot the data as a histogram/graph with a y-axis.
Also, are there more descriptions or examples of how to use TImage and associated classes? Even the class reference doesn’t have much notes for use.
I should have used the search on the Forum. I used google on the site, and the search on the ROOT homepage. Both failed to show that post.
Anyway thanks for that, I will give it a try.
p.s. That method and the other TImage class methods are not documented. It’s all trial and error to discover what these methods do! Someone should do some quick documentation of these classes (please).
In fact TImage is an abstract class and the concrete implementation is the class TASImage. You will find the documentation in that class. But I agree with you that from TImage itself it is not clear. I will make it more clear and also revisit TASImage help.