I’m trying to plot 2 histograms on the same pad, and stop the stats boxes from lying on top of each other. I’ve followed the advice in the manual, and on various root-talk pages, but it still doesn’t seem to work. This is basically what I have:
The above code does actually change the stats box NDC co-ordinates, but on the histogram they still end up on top of one another. What am I missing?
My setup uses ROOT 4.04.02 on windows XP. I compile my code in Visual Studio 7.1, and link with the ROOT libraries as Fracois-Xavier Gentit’s site on the install file page describes.
Thanks for your suggestion, but i’d like to keep it simple if possible, without the complexity of and invisible pad, a stack, or some other interim object… I actually based my code around this rather than the code you suggested, which offers a similar method.
I don’t see any reason for what I’m doing not to work (after all, it says it should in the manual!), except that it appears that it isn’t updating the displayed canvas with the altered stats box setting. Does anyone know a way of sorting this code as is, or do I really need to use the TMultiGraph class, or an invisible pad?
Right, i’ve narrowed the problem down. It seems to be something to do with dividing the canvas up. The following macro works fine, but if you uncomment lines 2 & 3, the stats box stops getting repositioned when the canvas is divided into 4 pads.