Hi,
Here is an example:
{
TFile f("hsimple.root");
TCanvas cc("cc", "cc");
Double_t cl[5] = { 0.1 , 1, 2, 10, 100};
hpxpy->SetContour(5,cl);
hpxpy->Draw("cont0z");
}
you can also do: hpxpy->SetContour(5) to get 5 equidistant contours.
Olivier
On Wed, 20 Apr 2005, Jorge A. Benitez wrote:
> Hello,
> I'm plotting some 2d Histograms using the "cont0z" option, I would like to
> change the number of levels of the histograms, meaning the number of colors
> used to plot the histogram, currently is using 20 levels but I would like it
> to be 6, is it possible?
> Thank you.
>
> Jorge.
>
>
-- Org: CERN - European Laboratory for Particle Physics. Mail: 1211 Geneve 23 - Switzerland Mailbox: J25910 E-Mail: Olivier.Couet_at_cern.ch Phone: +41 22 7676522 WWW: http://cern.ch/Olivier.Couet/ Fax: +41 22 7670300Received on Wed Apr 20 2005 - 09:36:45 MEST
This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:07 MET