Re: How to set the colormap used by the Draw() using "colz" option ?

Rene Brun (Rene.Brun@cern.ch)
Fri, 18 Jun 1999 12:55:02 +0000


Yannick,
All the Root classes are documented. see the list of classes at:
http://root.cern.ch/root/html/ClassIndex.html
For example, for TTree, go to:
http://root.cern.ch/root/html/TTree.html
In this URL, you can look at TTree::Draw at:
http://root.cern.ch/root/html/src/TTree.cxx.html#TTree:Draw
I suggest you read the URLS:
http://root.cern.ch/root/HowtoWriteTree.html
http://root.cern.ch/root/HowtoReadTree.html

The list of Drawing options is the same as in TH1::Draw
http://root.cern.ch/root/html/TH1.html#TH1:Draw

You can modify the color palette via TStyle::SetPalette
See URLs:
http://root.cern.ch/root/HowtoStyle.html
http://root.cern.ch/root/html/TStyle.html#TStyle:SetPalette

Concerning your problem with the macro ntuple1, please tell me
which version you started from (binary, source).
Which version of the compiler, Linux, etc.

Rene Brun

Patois Yannick wrote:
>
> Hello,
>
> The default colormap used by root when drawing something like
> "ntuple->Draw("x:y","x>0","colz");" doesnt fit me. How can I change it ?
>
> Also how can I set the x and y grid size and work on the created
> histogram ?
>
> Mor generaly, where can an average PAW user found information to create
> small macro to represent data ? Something like the PAW reference manual
> web page (http://wwwinfo.cern.ch/asd/paw/reference_manual/index.html) ?
> I found a useful small page called "The PAW to ROOT conversion table"
> (http://www.nikhef.nl/user/a03/root/primer/paw2root.html) but many many
> useful things are not mentioned in it.
>
> The "Classes and Members Reference Guide" gives somes info, but when you
> get :
> virtual void Draw(Text_t* varexp, Text_t* selection, Option_t* option,
> Int_t nentries = 1000000000, Int_t firstentry = 0)
> And a click on 'Option_t' gives : "Option_t ........... Option string" I
> do not feel very helped.
>
> Thanx for any help
>
> Yannick
>
> PS : ... and my linux version of root is still not able to execute the
> ntuple1.C exemple...