Re: [ROOT] profile layout questions

From: Rene Brun (
Date: Sat May 15 2004 - 09:37:04 MEST


On Fri, 14 May 2004, daan wrote:

> Hi,
> I have 2 questions regarding TProfile2D histograms.
> 1. I predefined my y-bins myself. Some of these y-bins are very narrow,
>    compared to others, which results in a plot with these bins that are
>    almost impossible to see.
>    Is it not possible to make a Y-axis with instead of the "real" valuse,
>    the "bin numbers"? This would allow me to see bins that have very
>    narrow widths on a "normal scaled axis".

There is a contradiction in your request. Why don'y you fill your Profile
with the variable being the bin number instead of the real value?

> 2. How can I define a range for the colorlevel in the TProfile2D? I mean,
>    I want to compare the Z-values for 2 different datasets, and this would
>    be much easier if I could make the Z-axis scale (the colorlevel) the
>    same for both of them.

see TH2::SetContour

Rene Brun

> thanks!
> daan

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