@@ -72,8 +72,20 @@ def reference(xref, *, size=0.1, ax=None):
72
72
ax .plot ((xref [0 ]- size , xref [0 ]+ size ), (xref [1 ]+ size , xref [1 ]- size ), 'k-' )
73
73
74
74
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
+ """
77
89
x0 = _np .asarray (x0 )
78
90
n0 = _np .asarray (n0 )
79
91
ax = _plt .gca ()
@@ -84,7 +96,7 @@ def secondary_sources(x0, n0, *, grid=None):
84
96
85
97
# plot symbols
86
98
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' )
88
100
ax .add_artist (ss )
89
101
90
102
0 commit comments