RE: [ROOT] updating canvas on TH3F rotation

From: Ed Oltman (eoltman@imago.com)
Date: Fri Jun 21 2002 - 15:31:42 MEST


Hi Rene,
  Here is a concrete example - perhaps I am doing something wrong here:

{
	TH3F *ph = new TH3F("ph","test",256,0.,256.,128,0.,256.,128,0.,256.);
	for(int iz=0;iz<256;iz++)
	{
		Float_t z = 0.5 + iz;
		Float_t r = 128.*sin(.013*z);
		Float_t x = 128.+r*sin(.13*z);
		Float_t y = 128.+r*cos(.13*z);
		ph->Fill(x,y,z);
	}
}

I can display it with ph->Draw(). When I rotate it, the bounding box
redraws, but the points do not.  I need to either hit a carriage return in
the console window or select Options->Refresh from the canvas menu.  If you
cannot reproduce this in with 3.02/07 on Win32, then perhaps my installation
is broken...  Thanks.

Ed

> -----Original Message-----
> From: Rene Brun [mailto:brun@pcbrun.cern.ch]
> Sent: Friday, June 21, 2002 3:01 AM
> To: Ed Oltman
> Cc: Roottalk@Pcroot. Cern. Ch
> Subject: Re: [ROOT] updating canvas on TH3F rotation
>
>
> Hi Ed,
>
> I cannot reproduce this problem with either 3.02/07 or 3.03/06
>
> Rene Brun
>
> On Thu, 20 Jun 2002, Ed Oltman wrote:
>
> > Hi,
> >   I am using root v3.02/07 on win32. When I plot 3 values of an
> ntuple, e.g.
> >
> >       TNtuple *pNtup ...
> >       pNtup->Draw("z:y:x")
> >
> >   I can rotate the plot with my mouse - each time I release the
> mouse, the
> > display updates.  However, when I make a TH3F object and display it:
> >
> > 	TH3F *p3dHist ...
> > 	p3dHist->Draw()
> >
> > the plot does not update automatically - I need to click on the console
> > window and hit return (or use the menu Option->Refresh.)  Is
> there a way to
> > make the display atomatically refresh?  Thanks..
> >
> > Ed Oltman
> >
> >
>
>
>
>



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:57 MET