[ROOT] Re: [ROOTDEV] root: color palette

From: Rene Brun (Rene.Brun@cern.ch)
Date: Thu May 13 2004 - 11:11:34 MEST


See the description of TH1 header and TH1::SetContour

//     Setting Drawing histogram contour levels (2-D hists only)
//     =========================================================
//     By default contours are automatically generated at equidistant
//     intervals. A default value of 20 levels is used. This can be modified
//     via TH1::SetContour() or TH1::SetContourLevel().
//     the contours level info is used by the drawing options "cont", "surf",
//     and "lego".


Rene Brun

skundu@veccal.ernet.in wrote:
> 
> Hi,
> 
>  I have some questions about ROOT color palette.See the spectrum below.E
> (x-axis)  & dE (y-axis). Here the weightage for different x-y is mostly lie
> between 1&100.Only in very few numbers of channels weight is very large.For
> that resion all the E-dE bands are not well seperated.But if I can set
> different color for weightage 1 to 100(say 10 colour) and only one color for
> weightage 200 to 10000,the my probem wiil be solved.
> 
>         My question is that whether I can set particular colour for a
> paricular range of weight? That color and range shuld be  fixed by me.For
> example:
> 
>                                    color                               weight
> 
>                                    Red                                  1-20
> 
>                                    blue                                  21-34
> 
>                                    bright blue                      35-40
> 
>                                     sky blue                         40-100
> 
>         etc.
> 
> 
> 
> With regards,
> Samir Kundu,
> Physics Group,Variable Energy Cyclotron Centre,
> 1/AF,Bidhannagar,kolkata-700064 ,India
> Ph No 033-23371230 Exten.2111



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:08 MET