No labels on drawn color palette

Hello ROOTers
I am making a contour plot from a TH1D, using Draw->(“CONTZ”);
It is working well except the color key has no labels, just the colors:

How can I get the numbers to show?
Thanks!

Before drawing, try something like this: canvas->SetRightMargin(0.2);