File: mtx_plot-help.pd

package info (click to toggle)
pd-iemmatrix 0.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,576 kB
  • sloc: ansic: 15,440; makefile: 291; sh: 169
file content (104 lines) | stat: -rw-r--r-- 3,981 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
#N struct mtx_vis-plot float x float y array mtx_vis-array mtx_vis-element 1;
#N struct mtx_vis-element float x float y float c float dx float dy;
#N canvas 128 118 666 696 10;
#X declare -lib iemmatrix;
#X obj 475 599 matrix;
#X text 345 598 see also help for;
#N canvas 460 154 494 171 META 0;
#X text 12 105 AUTHOR IOhannes m zmoelnig;
#X text 12 125 HELP_PATCH_AUTHORS IOhannes m zmölnig;
#X text 12 25 LICENSE GPL-2+;
#X text 12 65 INLET_0 matrix;
#X text 12 5 KEYWORDS control matrix;
#X obj 16 147 declare -lib iemmatrix;
#X text 12 44 DESCRIPTION plot a matrix;
#X restore 481 16 pd META;
#X obj 82 234 mtx_plot;
#X obj 101 100 mtx_rand;
#X obj 48 564 mtx_plot 200 50;
#X obj 101 33 loadbang;
#X msg 101 73 10;
#X text 136 10 plot a matrix;
#X text 214 56 [mtx_plot] will display the values of a matrix \, clipped between 0 (black) and 1 (white);
#X obj 475 619 mtx_print;
#X msg 48 74 5;
#X text 186 497 you can give the size of the matrix plot \, either as a single value (for square plots) or as a pair (for rectangle plots).;
#X text 273 255 [mtx_plot] is rather slow \, so don't display too big matrices!, f 62;
#X obj 169 129 mtx_diag;
#X msg 169 106 2 1 0.5 0 -0.5 -1;
#X obj 48 100 mtx_egg;
#N canvas 0 0 879 403 colormaps 0;
#X obj 283 307 array set \$0.colormap;
#X obj 264 17 inlet;
#X obj 264 40 symbol;
#X obj 449 307 list length;
#X obj 449 330 array size \$0.colormap;
#X obj 264 280 t b l l;
#X obj 264 353 outlet;
#X obj 264 63 t b s;
#X msg 264 100 gnuplot2 0 1 2 4 5 7 8 9 109 309 409 508 617 717 826 935 935 944 953 962 962 971 980 990 999 \, magma 0 0 1 2 103 203 204 304 314 414 414 514 614 624 723 723 833 833 843 843 853 864 864 875 886 \, grey 0 111 222 333 444 555 666 777 888 999 \, rainbow 409 308 318 228 238 148 58 58 68 78 177 287 287 387 386 486 586 585 685 684 774 874 863 953 952 942 931 921 910 900 \, gist_ncar 4 12 21 21 14 7 19 39 69 79 89 88 86 85 84 82 80 180 270 370 480 480 590 591 691 791 890 980 980 970 970 960 950 940 920 910 910 900 903 906 809 709 518 628 738 848 858 868 878 878, f 93;
#X text 441 35 colormaps are tables that map input values [0 \, 1] to Pd's data-structure colors (000..999), f 48;
#X obj 264 259 route unknown;
#X obj 135 18 loadbang;
#X msg 135 41 gnuplot2;
#X text 389 198 the values (and names) found here \, are taken from matplotlib;
#X connect 1 0 2 0;
#X connect 2 0 7 0;
#X connect 3 0 4 0;
#X connect 5 0 6 0;
#X connect 5 1 0 0;
#X connect 5 2 3 0;
#X connect 7 0 8 0;
#X connect 7 1 10 1;
#X connect 8 0 10 0;
#X connect 10 0 5 0;
#X connect 11 0 12 0;
#X connect 12 0 2 0;
#X restore 302 373 pd colormaps;
#X msg 302 447 colormap \$1;
#X obj 302 426 symbol \$0.colormap;
#X msg 307 106 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14;
#X obj 307 129 mtx_diegg;
#X obj 307 152 mtx_./ 14;
#X obj 453 426 array define \$0.colormap;
#X msg 302 309 gnuplot2;
#X obj 302 400 bng 18 250 50 0 empty empty empty 0 -9 0 10 #fcfcfc #000000 #000000;
#X msg 319 329 grey;
#X obj 65 418 mtx_plot 100;
#X msg 371 309 magma;
#X msg 371 331 rainbow;
#X msg 371 353 gist_ncar;
#X text 457 329 colorise the plot by encoding value->colors in a table, f 30;
#X text 457 366 (the coloring takes effect when the next data arrives), f 31;
#X msg 137 73 5 20;
#X obj 141 203 mtx_print;
#X obj 48 181 t a a a a;
#X obj 99 203 spigot;
#X obj 132 182 tgl 18 0 empty empty empty 0 -9 0 10 #fcfcfc #000000 #000000 0 1;
#X text 60 660 NOTE: [mtx_plot] requires Pd>=0.56;
#X connect 4 0 35 0;
#X connect 6 0 7 0;
#X connect 7 0 4 0;
#X connect 11 0 16 0;
#X connect 14 0 35 0;
#X connect 15 0 14 0;
#X connect 16 0 35 0;
#X connect 17 0 25 0;
#X connect 18 0 27 0;
#X connect 19 0 18 0;
#X connect 20 0 21 0;
#X connect 21 0 22 0;
#X connect 22 0 35 0;
#X connect 24 0 17 0;
#X connect 25 0 19 0;
#X connect 26 0 17 0;
#X connect 28 0 17 0;
#X connect 29 0 17 0;
#X connect 30 0 17 0;
#X connect 33 0 4 0;
#X connect 35 0 5 0;
#X connect 35 1 27 0;
#X connect 35 2 3 0;
#X connect 35 3 36 0;
#X connect 36 0 34 0;
#X connect 37 0 36 1;