RE: 3D Shperical graph

From: Olivier Couet <Olivier.Couet_at_cern.ch>
Date: Fri, 27 Mar 2009 13:05:46 +0100


If the bin with content = 0 would have a null radius then these bins will not be visible. An empty histogram is represented as a sphere. You can see all bins. In Cartesian coordinates an empty histogram is a plane.  

From: owner-roottalk_at_root.cern.ch [mailto:owner-roottalk_at_root.cern.ch] On Behalf Of Dmitry Kotov
Sent: Friday, March 27, 2009 12:27 PM
To: roottalk_at_root.cern.ch
Subject: [ROOT] 3D Shperical graph  

Dear all,

I've tried to create a 3d graph of my given data using the help from here - http://root.cern.ch/root/html/THistPainter.html#HP19

I''ll attach my macros to this letter, so you can try to examine it.

I have the two angles (let them be theta (0 - 90) and phi (0-360)) and elevation for each pair of angles.

My question is - why Bins with zero content have non-zero radius in spherical coordinates.

As you can see from my macros I fill only the half of the 180, so I want to see some kind of hedgehog, but in fact I receive the green semishpere which has non-zero radius.

And second question is why the shpere in fact looks like rugby ball in some projections, is there something I'm doing wrong?

Best regards, Dmitry. Received on Fri Mar 27 2009 - 13:06:06 CET

This archive was generated by hypermail 2.2.0 : Fri Mar 27 2009 - 17:50:02 CET