Hello
After manually adjusting features in a Cont4 histogram, I tried to write out to an eps file using “File->Save->c1.eps”. The eps output shows the histogram axis, but the contents are completely white.
For this output I wanted greyscale, so I used the following,
Int_t ncol = 20;
Int_t colors[ncol];
TColor *col;
Double_t dg=1/(Double_t)ncol;
Double_t grey=ncol;
for (Int_t i=0; i<ncol; i++) {
colors[i]= i+100;
col = gROOT->GetColor(colors[i]);
col->SetRGB(grey, grey, grey);
grey = grey-dg;
}
gStyle->SetPalette(ncol,colors);
If I comment this out, my eps output is fine. Any suggestions?
As an aside, while trying to sort this out, I converted my histogram to a TImage and tried the StartPaletteEditor() functionality. What a great tool, especially for pre-publication work. Unfortunately, upon conversion the TImage only shows up in pixellated form. Would it be possible to create a StartPaletteEditor() type function for a cont4 contoured histogram?
Thanks
Anthony Faust