TH2F surf1 plot transparent colors

Sorry for the late response, I mistakenly didn’t check the notification option.

Thanks alot, two color palettes should do the trick!

However I’m struggling with the PyROOT syntax for ROOT.SetPalette().
I tried the following, however this results in a surf plot with white fill color.


zeroes = [0]
Zeroes = array('i', zeroes)
ROOT.gStyle.SetPalette(55, Zeroes, 0.3)

I’ve read that Wim has implemented a proper nullpointer ([Problems setting palette however it isn’t in my ROOT version because I get an exception if I call it.

ROOT.gStyle.SetPalette(55, 0.3)

also obviously yields a type error.


Another thing that worries me with the link that you’ve provided is that I have a THStack, so that I can only draw once. However if I only draw once, I can’t use the TExec1 + TExec2 method

# 2 histograms:
h1.Draw('surf1')
ex1.Draw()
h2.Draw('surf1')
ex2.Draw()

# Single THStack:
THStack.Draw('surf1')
?

Thanks in advance.