Re: Spherical harmonics in spherical coordinates

From: Marcelo Zimbres <mzimbres_at_gmail.com>
Date: Tue, 12 May 2009 13:01:37 -0300


Dear Olivier,

the function is being drawn with that new line of code, but it is still not what I expect for a spherical harmonic in spherical coordinate.

Marcelo.

2009/5/12 Olivier Couet <couet_at_mail.cern.ch>

>
> Dear Marcelo,
>
> Add:
>
> gStyle->SetCanvasPreferGL(1);
>
> in your macro.
>
> Olivier
>
>
> On Tue, 12 May 2009, Marcelo Zimbres wrote:
>
> > Dear Olivier,
> >
> > the options "GLSURF1" and "GLSURF1 SPH" do not draw the function on the
> > canvas, and if i move the cursor on the canvas I get the following error
> > message:
> >
> > Error in <TGLHistPainter::DistancetoPrimitive>: Attempt to use
> > TGLHistPainter, while the current pad (gPad) does not support gl
> >
> > Thanks, Marcelo
> >
> > Ps. Thank you for your hint Lorenzo.
> >
> > 2009/5/12 Lorenzo Moneta <Lorenzo.Moneta_at_cern.ch>
> >
> > >
> > > On May 12, 2009, at 4:42 PM, Marcelo Zimbres wrote:
> > >
> > > hi,
> > >
> > > I am trying to draw spherical harmonics, implemented as an TF2 object,
> > > using the option "surf1 sph", but I do not get the desired results,
> even
> > > after
> > > reading the messages in:
> > >
> > > http://root.cern.ch/root/roottalk/roottalk09/0340.html
> > >
> > > There seems to be a problem with the "SPH" option or I have missed some
> > > points in the documentation. I would be grateful if you could point out
> a
> > > way
> > > to correct this problem.
> > >
> > > The macro is attached. I am running it after loading the Mathmore
> library
> > > in
> > > the interpreter with:
> > >
> > > gSystem->Load("libMathMore")
> > >
> > >
> > > You can avoid doing this, by adding in your file:
> > >
> > > #include "Math/SpecFunc.h"
> > >
> > > Lorenzo
> > >
> > >
> > >
> > > Best regards, Marcelo
> > >
> > > ps. I am sorry i posted this problem in the wrong place before.
> > > <report.C>
> > >
> > >
> > >
> >
>
> --
> Org: CERN - European Laboratory for Particle Physics.
> Mail: 1211 Geneve 23 - Switzerland Mailbox: J25910
> E-Mail: Olivier.Couet_at_cern.ch Phone: +41 22
> 7676522
> WWW: http://cern.ch/Olivier.Couet/ Fax: +41 22
> 7670300
>
Received on Tue May 12 2009 - 18:01:42 CEST

This archive was generated by hypermail 2.2.0 : Wed May 13 2009 - 11:50:02 CEST