Hello Hermann,
I usually use either of following workarounds.
1)
gPad->SetFrameFillColor(1);
or
2)
h->SetMinimum(-1e-10);
If you save the canvas in PS/PDF/EPS, 1) will be better, because zero-value pixels are not drawn, and thus fils size will be smaller.
Regards,
-- OKUMURA, Akira oxon@{astro.isas.jaxa.jp,stanford.edu} Institute of Space and Astronautical Science (ISAS/JAXA) Now at KIPAC/SLAC/Stanford Varian Physics #306, 382 Via Pueblo Mall, MC 4060 Stanford, CA 94305-4060 TEL 650-736-0971/FAX 650-724-5065 Skype : okumura.akira On 2011/05/23, at 5:12, Hermann Fuchs wrote:Received on Mon May 23 2011 - 18:28:14 CEST
> Hello
>
> I am displaying two dimensional data (energy deposited by a proton beam)
> with TH2 and the COLZ option.
> The data is in the range 0-100 (percent). It seems that bins which have
> the value zero are not drawn, e.g they appear white.
> As I do have a color bar ranging from 0= black 100=yellow, having white
> for the value 0 is a no-go.
>
> I have attached a picture to emphasize my problem.
>
> How do I:
>
> a) change the default color for zero values?
> b) enable the drawing of zero values in TH2?
>
> I would really appreciate your help.
>
> Yours,
> Hermann
> <CanvasEdepTwoDim.png>
This archive was generated by hypermail 2.2.0 : Mon May 23 2011 - 23:50:02 CEST