Deleting palette after drawing

Dear Rooters,
I have drawn a 2D spectrum with gStyle->SetPalette(51,0); and h_2_1->Draw(“colz”); After some modification with the palette, I want to remove it so that it doesn’t come in the picture as I save the canvas.
How can I do so. The changes done by the palette will remain but no showing the palette.

Thanks
Sankar

delete h.GetListOfFunctions()->FindObject(“palette”)

Rene

Dear Rene,
I did -
root [30] delete h_2_1.GetListOfFunctions()->FindObject(“palette”)

but the palette is still there. Am I missing something.

Sankar

Sorry I did not read correctly your message. I thought that you wished to save the histogram only.
Do
h_2_1->SetDrawOption(“col”);
and print your canvas

Rene