Fill TH2 with string

Hi

I would like to know if is possible to put in TH2 text in a specific (x,y) coordinate, ie something like

string value="var1";
h2->Fill(x,y,value.c_str());

thanks in advance

Alex

Hi,

You can put string on the axes for using them as labels, but you cannot use them for the content, it does not make much sense. You can always draw text on top on an histogram

Best Regards

Lorenzo