Hi Boris, Just put the levels in incresing order: Double_t level[3]={0.1,0.5,0.98}; Cheers, Olivier On Thu, 12 Jun 2003, Boris Tuchming wrote: > Hi, > I am using root 3.05/02 on linux > I am having troubles when choosing the contour levels for a 2d histogram > or function. > I have summarized the problem by the following macro > > { > TF2* f2=new TF2("f2","exp(-x*x/2)*exp(-y*y/2)",-5,5,-5,5); > Double_t level[3]={0.98,0.5,0.1}; > f2->SetContour(3,level); > f2->Draw("cont"); > } > > by doing this, > I do not get the levels that I would like (in this example 0.98, 0.5 and > 0.1)). > I guess I am doing something wrong but I can not figure out what. > Can any one help me ? > > Many thanks > Boris > > > > -- Org: CERN - European Laboratory for Particle Physics. Mail: 1211 Geneve 23 - Switzerland Mailbox: J25910 E-Mail: Olivier.Couet@cern.ch Phone: +41 22 7676522 WWW: http://cern.ch/Olivier.Couet/ Fax: +41 22 7677155
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:12 MET