Hi All,
When I draw a TH2 with “colz” options, depending on the values in the histogram and the width/height of the instantiated TCanvas there is potential for the colz palette’s values and/or title to be cut off at the edge of the canvas.
I suppose the solution is something like first grabbing the pad that the histogram is drawn on and moving that, and then grabbing the colz palette and moving that.
I’m attaching a simple script that generates a TH2D and then draws it on two different canvases, one of which the colz comes out OK, and one of which it comes out with truncated values.
Can anyone suggest a method to streamline the remedy for this that doesn’t require too much detailed tweaking of individual plots? Thanks!
Kevin
badcolz.C (548 Bytes)