I’m not quite sure what its called, but when you draw a histogram, its title appears in a box in the canvas. Is there any way to edit this text without changing the title of the histogram?
The reason I ask is that I’d like to put multiple histograms on the same TCanvas, and have a legend. The legend entries are generated by the titles of the TH1’s, and I don’t want the first legend entry to be the same as the tile displayed in the title box.
This seems to work for me in cint, but not in a script I’ve written. In the script, the title appears squished to a line just under the x-axis. If I drag it, it pops up to full size. However, I’d like the script to make the title automatically, without my intervention.
The script loops through several trees, plotting the same histogram from each one. Is there something in this code that will prevent the title from printing properly. I should mention I’m using root 5.18.