Palette and x-axis exponent

In the 2-D histogram shown, the palette is overlapping with the x-axis exponent. I would like to be able to move the palette up a little bit or move the exponent a bit down.
Any ideas.

Aous


move the palette:

   TPaletteAxis *palette = (TPaletteAxis*)h_myHisto->GetListOfFunctions()->FindObject("palette");
   palette->SetX1NDC(0.9);
   palette->SetX2NDC(0.95);
   palette->SetY1NDC(0.2);
   palette->SetY2NDC(0.8);

and/or change the right margin:

 gPad->SetBottomMargin(0.2);

The second method works. Thank you.
But when I tried the first one, I keep getting this error message:
Error: illegal pointer to class object palette 0x0 501 (tmpfile):1:
When I call the palette. Any ideas?
I would like to be able to change other things with the palette.

You must call gPad->Update before accessing the palette. The palette is only generated when the objects in the canvas are effectively Painted.

Rene