bfieldtools.sphtools.plotYlms

bfieldtools.sphtools.plotYlms(sph, lmax, polar=False)

Plots real spherical harmonics up to lmax. Inspired by https://docs.enthought.com/mayavi/mayavi/auto/example_spherical_harmonics.html.

Parameters
sph: spherical harmonics analysis object
lmax: int

maximum degree l

polar: boolean

plot polar representation?