Dear rooters,
I have an issue when plotting colored 2D histograms.
If I cut the plotting range in the z axis (colored dimension), the bins with smaller values than the low z edge are drawn in white.
That does not happen with the bins with greater values than the up z edge, which are drawn using the color corresponding to the up z edge.
This looks horrible in a colored histogram:
In the middle panel you can see how the values below the low edge are drawn in white instead of blue.
So any help to fix this is very welcome!
Thanks in advance,
Alberto
Now, we do not see these white bins in the middle plot, but then a even uglier gray rectangle appear in the top panel.
Could we setup an option to activate/deactivate this behaviour individually?
Something that we add to the drawing options…
Cheers!
Yes, I think so. It is exactly the same behaviour than in the other case.
In the top histograms I cut the z range at certain level.
Then by default root does not paint the bins whose z < zmin.
That is what I want in the top plot, but not in the middle.
That is why I think that an option together to the “col” could do the trick of painting the z< zmin bins or not, depending on the desired effect.
Did I explain myself clearly?
OK, I patched THistPainter.cxx myself to do this.
Now, if I do just Draw(“colz”) the behaviour is the usual: bins with z<zmin are not painted.
But if I do Draw(“colz0”) they are!
Here is the result in my plot: