# Spherical harmonics

**URL:** <https://root-forum.cern.ch/t/spherical-harmonics/17802>\
**Category:** ROOT\
**Created:** [June 24, 2014, 9:24am UTC](https://root-forum.cern.ch/t/spherical-harmonics/17802 "2014-06-24T09:24:10Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![cortese](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/c/e8c25b/32.png) [@cortese](https://root-forum.cern.ch/u/cortese)\
**Post date:** [June 24, 2014, 9:24am UTC](https://root-forum.cern.ch/t/spherical-harmonics/17802/1 "2014-06-24T09:24:10Z")

</div>

Hello,

I’m trying to plot spherical harmonics but I’m facing a few issues.

The closest I can get is in the attached plot and macro.  
The distance of the points from (0,0,0) as usual represent the module of the wave function while the color should represent the phase.

In this plot I have the following issues:

- cannot rescale the axis to have a square box
- if I update the color ranges to 0-2pi the plot is not updated (the portion with z\<0 should be cyan).

Ideally I would like to have a closed surface painted with the colors corresponding to the phase but also the representation with dots would be ok, provided that the axis and colors can be fixed.

Many thanks for help.  
Pietro  
[y10.pdf](https://root-forum.cern.ch/uploads/default/original/2X/8/81f5dd62f7156fd82ba06263f362b7bee3a7cf4a.pdf) (245 KB)  
[sferiche\_nt.C](https://root-forum.cern.ch/uploads/default/original/2X/b/bcc6663db2720cc60afe44726e34d2fa9c5c07ad.C) (2.25 KB)

---

_[View the full topic](https://root-forum.cern.ch/t/spherical-harmonics/17802)._
