@@ -72,8 +72,20 @@ def reference(xref, *, size=0.1, ax=None):
7272 ax .plot ((xref [0 ]- size , xref [0 ]+ size ), (xref [1 ]+ size , xref [1 ]- size ), 'k-' )
7373
7474
75- def secondary_sources (x0 , n0 , * , grid = None ):
76- """Simple plot of secondary source locations."""
75+ def secondary_sources (x0 , n0 , * , size = 0.05 , grid = None ):
76+ """Simple visualization of secondary source locations.
77+
78+ Parameters
79+ ----------
80+ x0 : (N, 3) array_like
81+ Loudspeaker positions.
82+ n0 : (N, 3) or (3,) array_like
83+ Normal vector(s) of loudspeakers.
84+ size : float, optional
85+ Size of loudspeakers in metres.
86+ grid : triple of array_like, optional
87+ If specified, only loudspeakers within the *grid* are shown.
88+ """
7789 x0 = _np .asarray (x0 )
7890 n0 = _np .asarray (n0 )
7991 ax = _plt .gca ()
@@ -84,7 +96,7 @@ def secondary_sources(x0, n0, *, grid=None):
8496
8597 # plot symbols
8698 for x00 in x0 :
87- ss = _plt .Circle (x00 [0 :2 ], .05 , edgecolor = 'k' , facecolor = 'k' )
99+ ss = _plt .Circle (x00 [0 :2 ], size , edgecolor = 'k' , facecolor = 'k' )
88100 ax .add_artist (ss )
89101
90102
0 commit comments