I have a small macro which defines a grey palette which I probably copied from the rootalk list years ago. It’s great (see figure) but I would like to invert it, that is white<->black. The benefit will be that small bin contents are very light grey which blends into the white (zero bin contents). Sounds easy but I’m having a devilish time of it (my attempts always end up with some color in them) and wonder if someone already has the solution.
Thanks, this does work. It was actually the very first thing I tried but if you look closely at the grey_pallete.C macro (and the TStyle header!) you can see that I have a bug:
“stops” should preceed “red”. The tricky thing is that it works as written for the orignal grey pallete but not when inverted. Thanks for helping me see through this one.