Re: contour not closed?

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Sat, 03 Feb 2007 09:18:37 +0100


Art,

Thanks for reporting this problem. Now fixed in the CVS head. With your version, you can use the following work-around:   gl->SetPoint(40,gl->GetX()[0],gl->GetY()[0]);

Rene Brun

Arthur E. Snyder wrote:
> Hi Rooters,
>
> I find that when I make a contour plot with TMinuit::contour the curve is
> not closed. It appears it fails to connect the 1st and last points.
>
> Is there perhaps some drawing option I'm missing?void contourPlot
>
> I do this?
>
> TGraph* contour(TMinuit* gMinuit,Int_t v1,Int_t v2,TString title,TString
> opt) {
> gMinuit->SetErrorDef(2.); // 2-sigma
> TGraph* g1=(TGraph*)gMinuit->Contour(40,v2,v1);
> Common::graph=new TGraph(*g1);
> g1->SetTitle(title);
> TString doit="alp";
> doit+=opt;
> g1->Draw(doit);
> return g1;
> }
>
> Thanks.
>
> A.E. Snyder, Group EC \!c*p?/
> SLAC Mail Stop #95 ((. .))
> Box 4349 |
> Stanford, Ca, USA, 94309 '\|/`
> e-mail:snyder_at_slac.stanford.edu o
> phone:650-926-2701 _
> http://www.slac.stanford.edu/~snyder BaBar
> FAX:650-926-2657 Collaboration
>
>
>
Received on Sat Feb 03 2007 - 09:18:46 CET

This archive was generated by hypermail 2.2.0 : Mon Apr 02 2007 - 23:50:01 CEST