File: mtvplot.ps

package info (click to toggle)
a2ps 1%3A4.15.7-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 18,716 kB
  • sloc: ansic: 44,830; sh: 11,625; lex: 1,851; perl: 708; yacc: 698; makefile: 494; lisp: 396; ada: 263; objc: 189; f90: 109; ml: 85; sql: 74; pascal: 57; modula3: 33; haskell: 32; sed: 30; java: 29; python: 24
file content (76 lines) | stat: -rw-r--r-- 1,512 bytes parent folder | download | duplicates (14)
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
%%Page: (1) 1
%%BeginPageSetup
/pagesave save def
%%EndPageSetup
iso1dict begin
(Test Files) 35.25 water
gsave
llx lly 12 add translate
/v 0 store
/x0 x v get 4.703931 add sx cw mul add store
/y0 y v get bfs th add sub store
x0 y0 moveto
(## usage mtvplot\(input,titles,filename\)) c n
(##) N
(## Outpluts graphs in MTV 1.4.1 curve2d format.) N
(##) N
(##     input:    is a matrix with the ordinate in the first column,) N
(##               each successive column is a separate curve to plot) N
(##               on the SEPARATE axes.) N
(##     titles:   a list of string titles for each plot) N
(##     filename: the file to store the mtv file in) N
() p n
(function) K
( mtvplot\(input,titles,filename\)) p n
(  file=fopen\(filename,") S
(w) str
("\);) p n
() N
() N
(  ) S
(for) K
( g=\(1:columns\(input\)-1\)) p n
(    fprintf\(file,") S
(%s\\n) str
(",") p
($DATA=Curve2d) str
("\);) p n
(    fprintf\(file,") S
(%s %s %s\\n) str
(",") p
(%toplabel=\\") str
(",titles\(g,:\),") p
(\\") str
("\);) p n
(    fprintf\(file,") S
(%s\\n) str
(",") p
(% linetype=1) str
("\);) p n
(    ) S
(for) K
( x=1:rows\(input\)) p n
(      fprintf\(file,") S
(%f %f\\n) str
(",input\(x,1\),input\(x,g+1\)\);) p n
(    ) S
(endfor) K n
(  ) p
(endfor) K n
(  fclose\(file\)) p n
(endfunction) K n
() p n
(  ) N
(  ) S
(mtvplot.octave) (right) (1) title
border
grestore
(The room for the header) rhead
(Printed by Somebody from a machine) (Right) (1) footer
end % of iso1dict
pagesave restore
showpage

%%Trailer
end
%%EOF