File: plot.pd

package info (click to toggle)
pd 0.32p1-5
  • links: PTS
  • area: main
  • in suites: woody
  • size: 4,704 kB
  • ctags: 5,418
  • sloc: ansic: 38,382; tcl: 1,036; makefile: 612; sh: 265
file content (55 lines) | stat: -rw-r--r-- 2,843 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#N canvas 0 294 484 254 12;
#N canvas 393 10 537 520 help-plot-template 1;
#X text 29 34 creation arguments:;
#X text 48 71 - RGB color (0=black \, 999=white \, 900=red \, 90=green \, 9=blue \, 555=grey \, etc.);
#X obj 35 363 template float x float y array array1 help-plot-array1-template array array2 help-plot-array2-template array array3 help-plot-array3-template;
#X text 47 52 - OPTIONAL word "curve" to specify bezier;
#X text 46 98 - line width;
#X text 46 114 - relative x and y location;
#X text 47 130 - x spacing;
#X obj 43 204 plot curve array2 70 3 100 0;
#X obj 41 284 plot curve array3 9 1 120 50 20;
#X obj 37 16 plot array1 500 1 10 15 20;
#X text 29 147 This first example plots the red trace (500) \, width 1 \, at point (10 \, 15) \, with horizontal spacing 20 The black diamonds come from the template of the array1 element itself.;
#X text 66 226 This is the green spiral (color 70 \, line width 3 \, location (100 \, 0). Since the template for array2 contains an "x" cariable \, play ignores x spacing requests and takes x from the data itself.;
#X text 61 304 If a "w" variable is present in the template as for array3 \, it is added to the line width.;
#X text 44 342 here's the template for all this:;
#X obj 44 468 filledpolygon 509 509 0 -10 -10 10 -10 10 10 -10 10;
#X text 42 424 The data itself is in the file "plot.txt" (or see it using "properties" for the scalar by right clicking on the purple square...);
#X restore 238 106 pd help-plot-template;
#N canvas 196 292 273 120 help-plot-array1-template 0;
#X obj 30 71 filledpolygon 0 0 0 -5 0 0 5 5 0 0 -5;
#X obj 32 27 template float y;
#X restore 237 129 pd help-plot-array1-template;
#N canvas 161 163 273 120 help-plot-array2-template 0;
#X obj 32 26 template float x float y;
#X restore 238 151 pd help-plot-array2-template;
#N canvas 0 0 411 207 help-plot-data 1;
#X restore 237 85 pd help-plot-data;
#N canvas 460 63 405 328 stuff 0;
#X msg 18 223 \; pd-help-plot-data clear;
#X msg 190 174 \; pd-help-plot-data write foo;
#X msg 190 203 \; pd-help-plot-data read foo;
#X obj 183 257 pointer;
#X obj 133 289 append help-plot-template x y;
#X msg 183 236 traverse pd-help-plot-data \, bang;
#X msg 130 259 100 100;
#X msg 14 44 \; pd-help-plot-data read plot.txt;
#X obj 16 18 loadbang;
#X text 152 144 ignore this scaffolding...;
#X connect 3 0 4 2;
#X connect 5 0 3 0;
#X connect 6 0 4 0;
#X connect 8 0 7 0;
#X restore 237 195 pd stuff;
#X text 279 232 updated for Pd version 0.32;
#X text 29 207 see also:;
#X obj 112 226 drawnumber;
#X obj 50 226 template;
#X obj 35 22 plot;
#X text 109 22 -- draw array elements of scalars;
#X obj 188 226 drawpolygon;
#N canvas 161 163 273 120 help-plot-array3-template 0;
#X obj 43 32 template float y float w;
#X restore 237 172 pd help-plot-array3-template;
#X text -6 106 explanation is in the template-->;