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.
I did -
root  delete h_2_1.GetListOfFunctions()->FindObject(“palette”)
but the palette is still there. Am I missing something.
Sorry I did not read correctly your message. I thought that you wished to save the histogram only.
and print your canvas