#N struct template11 float x float y array a template11a;
#N struct template11a float x float amp float w1 float w2;
#N canvas 421 87 528 289 12;
#N canvas 587 23 468 441 template11 0;
#X obj 94 292 bng 15 250 50 0 empty empty empty 0 -6 0 8 #fcfcfc #000000
#000000;
#X obj 94 314 t b b;
#X obj 237 340 pointer;
#X msg 237 307 traverse pd-data11 \, bang;
#X obj 93 369 append template11 x y;
#X msg 94 344 50 50;
#X obj 28 21 struct template11 float x float y array a template11a
;
#X obj 36 256 filledpolygon 0 0 0 0 0 3 0 3 30 0 30 0 0;
#X obj 36 136 plot -w w1 a 0 2 5 0;
#X obj 38 192 plot -w w2 a 0 2 5 15;
#X obj 45 85 plot -y amp(0:100)(0:100) a 500 2 5 30;
#X text 46 63 Graph (x \, amp) pairs (using "amp" as the "y" field):
;
#X text 38 110 Graph "w1" as width ("y" is zero);
#X text 35 170 also "w2" \, at (5 \, 15) to disambiguate the one at
(5 \, 0);
#X text 33 233 Mark the scalar itself;
#X connect 0 0 1 0;
#X connect 1 0 5 0;
#X connect 1 1 3 0;
#X connect 2 0 4 2;
#X connect 3 0 2 0;
#X connect 5 0 4 0;
#X restore 60 175 pd template11;
#N canvas 1005 137 313 196 data11 1;
#X scalar template11 41 87 \; 2 0 0 0 \; 18 51 7 0 \; 98 41 0 5 \;
109 0 0 0 \; \;;
#X coords 0 196 1 195 0 0 0;
#X restore 60 237 pd data11;
#N canvas 364 422 481 86 template11a 0;
#X obj 39 30 struct template11a float x float amp float w1 float w2
;
#X restore 60 204 pd template11a;
#X text 27 15 You can control which variable is used as "x" \, "y"
\, and "width" when plotting an array. In this example a single array
"a" is plotted three times \, to show the values of the "amp" \, "w1"
and "w2" fields. This is convenient when you want to have several variables
in each point of the array and need several traces of the same array
to visualize it all., f 63;
#X text 26 110 In this example the array points have no "y" field at
all \, so if no variable is supplied to use instead of "y" \, the array
is flat along its "x" axis., f 63;
#X text 284 217 updated for Pd version 0.39;
