I need to make a histogram with empty spaces between some bins, but continuous 2D bin numbering (ignoring the spaces). Probably TH2Poly with alphanumeric bin names is the best option (although I’ll have to subclass the TH2Poly so Fill(int1, int2, val) with call Fill(string(int1), string(int2), val)). I started simple and already have a problem. My bin labels do not seem to go where they should, below the bins. I would be grateful for a hint on what I am doing wrong:
Thanks. However, it seem then that I either have not understand the API, or the API of TH2Poly is somewhat misleading, as it shows Fill(char , char, double):
OK, So I understand that when filling with a class that has IsInside() and inherits from TNamed, the poly-bin name becomes the name of the object with thick the TH2Poly was filled. But that, and the example with Europe refers to one string in Fill(). How to give a bin a name with 2 strings, as in the Fill() I referred to?
Indeed this FIll method is not used in TH2Poly. It is overwritten because TH2Poly inherits for TH2.
The Doxygen documentation should make it more clear.
See: