Re: [ROOT] colz

From: Olivier Couet (Olivier.Couet@cern.ch)
Date: Wed Sep 04 2002 - 16:55:03 MEST


 Hi,

 You are right, with colz the levels are equidistant along the palette (z
axis). The only way I can imagine to emulate what you want is to define
the same colour for some consecutive levels.
 Your second problem will be more difficult to emulate because as you
noticed the palette is not really drawn that way for the time being. It
understand log scale but the scale you want is more a sort of "random
scale". As I understand it you would like to have little coloured
rectangles with a "legend" for each of them, the "legend" being the level
value. The only way I can imagine to do that now is to make a small macro
doing this drawing.

 Cheers,      Olivier

--
Org:    CERN - European Laboratory for Particle Physics.
Mail:   1211 Geneve 23 - Switzerland                                    
E-Mail: Olivier.Couet@cern.ch                      Phone: +41 22 7676522
WWW:    http://cern.ch/Olivier.Couet/              Fax:   +41 22 7677155

On Tue, 3 Sep 2002, Aldo F. Saavedra wrote:

> Hi,
> 
> I find that drawing 2d histograms with the colz option
> represents data in a much clear manner. It colours
> the area corresponding to the bin rather than creating
> the a contour as in the cont option. I think the former
> works better with histograms with a small number of
> bins as in the case of my data.
> 
> My only problem is that the colz option, the colours
> of the cell is proportional to the value of the cell.
> I was wondering if it would be possible to set
> the levels manually as in SetContour() .
> 
> The other wish is to do with the palette that is
> drawn with the z option. At the moment the z length
> of the rectangle drawn for the particular colour
> is proportional to the distance between the two
> levels. So if I have levels 0.1,0.2,1,3,4,50,200
> the palette is pretty much covered by the last
> two levels. I think it would be beneficial if
> all the colours occupied the same area and each
> level gets a major tick, it would
> make matching a value to the colour or contour
> 2d map much easier.
> 
> Cheers,
> Aldo
> 
> 
> 
> ***********************************************************
>  Aldo F. Saavedra
>  ATLAS Collaboration - Pixel Group (Physics Division)
>  Lawrence Berkeley National Laboratory
> 
>  Email:          AFSaavedra@lbl.gov
>  Phone:          1 510 486 4690
>  Fax:		 1 510 486 5101
>  Postal Address: Lawrence Berkeley National Laboratory
>                  1 Cyclotron Rd Mailstop 50B-6208
>                  Berkeley, CA 94720
>                  USA
> 
> 



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:07 MET