Advise on TPalette and B&W printers


The recommended palette ( accessed through gStyle->SetPalette(1) ) is nice on screen and on color prionters, however on black & white printers it doesn’t looke good (way too dark with the “textcolz” option).

Has anybody created a palette that looks good on both color and B&W printer?
My problem is that I am plotting 2D histo with cells contents displayed through (“text colz”) and I can’t read the text on B&W printers.


You can define your own palette:

   TCanvas *c  = new TCanvas("c","Contours",600,0,600,600);
   TF2 *f1 = new TF2("f2","0.1+(1-(x-2)*(x-2))*(1-(y-2)*(y-2))",1,3,1,3);  

   UInt_t Number = 2;
   Double_t Red[Number]   = { 0.00, 1.00};
   Double_t Green[Number] = { 0.00, 1.00};
   Double_t Blue[Number]  = { 0.00, 1.00};
   Double_t Stops[Number] = { 0.00, 1.00};

   Int_t nb=50;

You can also use the Gray scale mode. See: