Hi Folks – I’ve looked around and tried a few things, but I haven’t been able to figure out how to do this.
I would like to plot a TH2F histogram in a pad over top of a (for instance) a TImage imported from Google maps. I’ve been able to do something like this by exporting my TH2F to matplotlib (which i’ve attached), but I would like to use the interactive capabilities of a ROOT canvas to do further analysis that I don’t know how to do with matplotlib.
I’ve tried creating a transparent pads (one with the image, and one with the histogram) but the histogram completely obscures the image.
Anyone know the best way to do this (if it is even possible?)
ROOT now support transparency in PNG files. That’s still not done for a complete color map but you can easily loop on all the colors in the map to make them transparent (by the way making a complete map transparent is a nice extension to add to TPaletteAxis). The following example shows you how to make a color transparent:
However, I’m looking for the transparency to show up while in the canvas. I’m essentially geo-referencing a 2D histogram to a map image from google maps.
I’d like to be able to draw cuts (TCutG) in the canvas based on guidance from the underlying map image (for instance I have a constraint that a cut boundary cannot cross a road) which means being able to zoom-in and zoom-out using the axes and having both the map image and the 2-D histogram scale.
I haven’t quite figured out how to do that. Is transparancy possible in a TCanvas?
Also, I agree whole-heartedly about the dangers of the rainbow color scale, both for the reasons given in your document and for the difficulties that arise for color-blind people like me. Thanks for the reference.