Bug in TGraph::Draw("B")

From: Anton Fokin (fokin@tsl.uu.se)
Date: Sat Mar 04 2000 - 15:02:14 MET


Hi!

There is a clipping bug in TGraph painted with Bar option. Run a macro below
and try to zoom X or Y.

Note that kClipFrame is forced to be kTRUE and it works fine with "L"
option.

{
   gROOT->Reset();

   TH2F   *Hist  = new TH2F("mumu","mumu",100,0,100,100,0,100);
   Hist->Draw();

   TGraph *Graph = new TGraph();
   Graph->SetBit(TGraph::kClipFrame,kTRUE);

   for(Int_t i=0;i<100;i++)
     Graph->SetPoint(i,i,i);

   Graph->SetFillColor(kBlue);
   Graph->Draw("B");
}

Best regards,
Anton



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:20 MET