plotVW

pylayers.antprop.spharm.plotVW(l, m, theta, phi, sf=False)[source]

plot VSH transform vsh basis in 3D plot

(V in fig1 and W in fig2)

n,m : integer values (m<=n) theta : ndarray phi : ndarray sf : boolean

if sf : plotted figures are saved in a *.png file else : plotted figures aren’t saved

>>> from pylayers.antprop.spharm import *
>>> import matplotlib.pyplot as plt
>>> import numpy as np
>>> n=5
>>> m=3
>>> theta = np.linspace(0,np.pi,30)
>>> phi   = np.linspace(0,2*np.pi,60)
>>> plotVW(n,m,theta,phi)
>>> plt.show()

(Source code)