File: plot.sh

package info (click to toggle)
saods9 7.3.2%2Brepack-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 22,044 kB
  • ctags: 21,414
  • sloc: cpp: 66,406; tcl: 60,491; ansic: 19,507; sh: 9,996; xml: 1,375; makefile: 892; perl: 68
file content (270 lines) | stat: -rwxr-xr-x 9,509 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
echo "Starting DS9..."
if [ `xpaaccess ds9` = no ]; then
    ds9 -tcl&

    i=1
    while [ "$i" -le 30 ]
	do
	sleep 2
	if [ `xpaaccess ds9` = yes ]; then
	    break
	fi

	i=`expr $i + 1`
    done
fi

echo
echo "*** plot.sh ***"

delay=.5

echo -n "stdin 2|3|4|5..."
cat plot/stdin.2.dat | xpaset ds9 plot new stdin
cat plot/stdin.3.dat | xpaset ds9 plot new stdin
cat plot/stdin.4.dat | xpaset ds9 plot new stdin
cat plot/stdin.5.dat | xpaset ds9 plot new stdin
sleep "$delay"
xpaset -p ds9 plot close
xpaset -p ds9 plot close
xpaset -p ds9 plot close
xpaset -p ds9 plot close

cat plot/stdin.2.dat | xpaset ds9 plot new bar stdin
cat plot/stdin.3.dat | xpaset ds9 plot new bar stdin
cat plot/stdin.4.dat | xpaset ds9 plot new bar stdin
cat plot/stdin.5.dat | xpaset ds9 plot new bar stdin
sleep "$delay"
xpaset -p ds9 plot close
xpaset -p ds9 plot close
xpaset -p ds9 plot close
xpaset -p ds9 plot close

cat plot/stdin.2.dat | xpaset ds9 plot new scatter stdin
cat plot/stdin.3.dat | xpaset ds9 plot new scatter stdin
cat plot/stdin.4.dat | xpaset ds9 plot new scatter stdin
cat plot/stdin.5.dat | xpaset ds9 plot new scatter stdin
sleep "$delay"
xpaset -p ds9 plot close
xpaset -p ds9 plot close
xpaset -p ds9 plot close
xpaset -p ds9 plot close
echo "PASSED"

echo -n "named stdin 2|3|4|5..."
cat plot/stdin.2.dat | xpaset ds9 plot new name foo stdin
cat plot/stdin.3.dat | xpaset ds9 plot new name foo stdin
cat plot/stdin.4.dat | xpaset ds9 plot new name foo stdin
cat plot/stdin.5.dat | xpaset ds9 plot new name foo stdin
sleep "$delay"
xpaset -p ds9 plot close
xpaset -p ds9 plot close
xpaset -p ds9 plot close
xpaset -p ds9 plot close

cat plot/stdin.2.dat | xpaset ds9 plot new name foo bar stdin
cat plot/stdin.3.dat | xpaset ds9 plot new name foo bar stdin
cat plot/stdin.4.dat | xpaset ds9 plot new name foo bar stdin
cat plot/stdin.5.dat | xpaset ds9 plot new name foo bar stdin
sleep "$delay"
xpaset -p ds9 plot close
xpaset -p ds9 plot close
xpaset -p ds9 plot close
xpaset -p ds9 plot close

cat plot/stdin.2.dat | xpaset ds9 plot new name foo scatter stdin
cat plot/stdin.3.dat | xpaset ds9 plot new name foo scatter stdin
cat plot/stdin.4.dat | xpaset ds9 plot new name foo scatter stdin
cat plot/stdin.5.dat | xpaset ds9 plot new name foo scatter stdin
sleep "$delay"
xpaset -p ds9 plot close
xpaset -p ds9 plot close
xpaset -p ds9 plot close
xpaset -p ds9 plot close
echo "PASSED"

echo -n "stdin xy|xyex|xyey|xyexey..."
cat plot/stdin.xy.dat | xpaset ds9 plot new stdin
cat plot/stdin.xyex.dat | xpaset ds9 plot new stdin
cat plot/stdin.xyey.dat | xpaset ds9 plot new stdin
cat plot/stdin.xyexey.dat | xpaset ds9 plot new stdin
sleep "$delay"
xpaset -p ds9 plot close
xpaset -p ds9 plot close
xpaset -p ds9 plot close
xpaset -p ds9 plot close

cat plot/stdin.xy.dat | xpaset ds9 plot new bar stdin
cat plot/stdin.xyex.dat | xpaset ds9 plot new bar stdin
cat plot/stdin.xyey.dat | xpaset ds9 plot new bar stdin
cat plot/stdin.xyexey.dat | xpaset ds9 plot new bar stdin
sleep "$delay"
xpaset -p ds9 plot close
xpaset -p ds9 plot close
xpaset -p ds9 plot close
xpaset -p ds9 plot close

cat plot/stdin.xy.dat | xpaset ds9 plot new scatter stdin
cat plot/stdin.xyex.dat | xpaset ds9 plot new scatter stdin
cat plot/stdin.xyey.dat | xpaset ds9 plot new scatter stdin
cat plot/stdin.xyexey.dat | xpaset ds9 plot new scatter stdin
sleep "$delay"
xpaset -p ds9 plot close
xpaset -p ds9 plot close
xpaset -p ds9 plot close
xpaset -p ds9 plot close
echo "PASSED"

echo -n "named stdin xy|xyex|xyey|xyexey..."
cat plot/stdin.xy.dat | xpaset ds9 plot new name foo stdin
cat plot/stdin.xyex.dat | xpaset ds9 plot new name foo stdin
cat plot/stdin.xyey.dat | xpaset ds9 plot new name foo stdin
cat plot/stdin.xyexey.dat | xpaset ds9 plot new name foo stdin
sleep "$delay"
xpaset -p ds9 plot close
xpaset -p ds9 plot close
xpaset -p ds9 plot close
xpaset -p ds9 plot close

cat plot/stdin.xy.dat | xpaset ds9 plot new name foo bar stdin
cat plot/stdin.xyex.dat | xpaset ds9 plot new name foo bar stdin
cat plot/stdin.xyey.dat | xpaset ds9 plot new name foo bar stdin
cat plot/stdin.xyexey.dat | xpaset ds9 plot new name foo bar stdin
sleep "$delay"
xpaset -p ds9 plot close
xpaset -p ds9 plot close
xpaset -p ds9 plot close
xpaset -p ds9 plot close

cat plot/stdin.xy.dat | xpaset ds9 plot new name foo scatter stdin
cat plot/stdin.xyex.dat | xpaset ds9 plot new name foo scatter stdin
cat plot/stdin.xyey.dat | xpaset ds9 plot new name foo scatter stdin
cat plot/stdin.xyexey.dat | xpaset ds9 plot new name foo scatter stdin
sleep "$delay"
xpaset -p ds9 plot close
xpaset -p ds9 plot close
xpaset -p ds9 plot close
xpaset -p ds9 plot close
echo "PASSED"

echo -n "stdin text|error..."
cat plot/stdin.error.dat | xpaset ds9 plot new stdin
cat plot/stdin.text.dat | xpaset ds9 plot new stdin
sleep "$delay"
xpaset -p ds9 plot close
echo "PASSED"

echo -n "named stdin text|error..."
cat plot/stdin.error.dat | xpaset ds9 plot new name foo stdin
cat plot/stdin.text.dat | xpaset ds9 plot new name foo stdin
sleep "$delay"
xpaset -p ds9 plot close
echo "PASSED"

echo -n "4|5..."
cat plot/4.dat | xpaset ds9 plot new "{The Title}" "{X Axis}" "{Y Axis}" 4
cat plot/5.dat | xpaset ds9 plot new "{The Title}" "{X Axis}" "{Y Axis}" 5
sleep "$delay"
xpaset -p ds9 plot close
xpaset -p ds9 plot close

cat plot/4.dat | xpaset ds9 plot new bar "{The Title}" "{X Axis}" "{Y Axis}" 4
cat plot/5.dat | xpaset ds9 plot new bar "{The Title}" "{X Axis}" "{Y Axis}" 5
sleep "$delay"
xpaset -p ds9 plot close
xpaset -p ds9 plot close

cat plot/4.dat | xpaset ds9 plot new scatter "{The Title}" "{X Axis}" "{Y Axis}" 4
cat plot/5.dat | xpaset ds9 plot new scatter "{The Title}" "{X Axis}" "{Y Axis}" 5
sleep "$delay"
xpaset -p ds9 plot close
xpaset -p ds9 plot close
echo "PASSED"

echo -n "named 4|5..."
cat plot/4.dat | xpaset ds9 plot new name foo "{The Title}" "{X Axis}" "{Y Axis}" 4
cat plot/5.dat | xpaset ds9 plot new name foo "{The Title}" "{X Axis}" "{Y Axis}" 5
sleep "$delay"
xpaset -p ds9 plot close
xpaset -p ds9 plot close

cat plot/4.dat | xpaset ds9 plot new name foo bar "{The Title}" "{X Axis}" "{Y Axis}" 4
cat plot/5.dat | xpaset ds9 plot new name foo bar "{The Title}" "{X Axis}" "{Y Axis}" 5
sleep "$delay"
xpaset -p ds9 plot close
xpaset -p ds9 plot close

cat plot/4.dat | xpaset ds9 plot new name foo scatter "{The Title}" "{X Axis}" "{Y Axis}" 4
cat plot/5.dat | xpaset ds9 plot new name foo scatter "{The Title}" "{X Axis}" "{Y Axis}" 5
sleep "$delay"
xpaset -p ds9 plot close
xpaset -p ds9 plot close
echo "PASSED"

echo -n "xy|xyex|xyey|xyexey..."
cat plot/xy.dat | xpaset ds9 plot new "{The Title}" "{X Axis}" "{Y Axis}" xy
cat plot/xyex.dat | xpaset ds9 plot new "{The Title}" "{X Axis}" "{Y Axis}" xyex
cat plot/xyey.dat | xpaset ds9 plot new "{The Title}" "{X Axis}" "{Y Axis}" xyey
cat plot/xyexey.dat | xpaset ds9 plot new "{The Title}" "{X Axis}" "{Y Axis}" xyexey
sleep "$delay"
xpaset -p ds9 plot close
xpaset -p ds9 plot close
xpaset -p ds9 plot close
xpaset -p ds9 plot close

cat plot/xy.dat | xpaset ds9 plot new bar "{The Title}" "{X Axis}" "{Y Axis}" xy
cat plot/xyex.dat | xpaset ds9 plot new bar "{The Title}" "{X Axis}" "{Y Axis}" xyex
cat plot/xyey.dat | xpaset ds9 plot new bar "{The Title}" "{X Axis}" "{Y Axis}" xyey
cat plot/xyexey.dat | xpaset ds9 plot new bar "{The Title}" "{X Axis}" "{Y Axis}" xyexey
sleep "$delay"
xpaset -p ds9 plot close
xpaset -p ds9 plot close
xpaset -p ds9 plot close
xpaset -p ds9 plot close

cat plot/xy.dat | xpaset ds9 plot new scatter "{The Title}" "{X Axis}" "{Y Axis}" xy
cat plot/xyex.dat | xpaset ds9 plot new scatter "{The Title}" "{X Axis}" "{Y Axis}" xyex
cat plot/xyey.dat | xpaset ds9 plot new scatter "{The Title}" "{X Axis}" "{Y Axis}" xyey
cat plot/xyexey.dat | xpaset ds9 plot new scatter "{The Title}" "{X Axis}" "{Y Axis}" xyexey
sleep "$delay"
xpaset -p ds9 plot close
xpaset -p ds9 plot close
xpaset -p ds9 plot close
xpaset -p ds9 plot close
echo "PASSED"

echo -n "name xy|xyex|xyey|xyexey..."
cat plot/xy.dat | xpaset ds9 plot new name foo "{The Title}" "{X Axis}" "{Y Axis}" xy
cat plot/xyex.dat | xpaset ds9 plot new name foo "{The Title}" "{X Axis}" "{Y Axis}" xyex
cat plot/xyey.dat | xpaset ds9 plot new name foo "{The Title}" "{X Axis}" "{Y Axis}" xyey
cat plot/xyexey.dat | xpaset ds9 plot new name foo "{The Title}" "{X Axis}" "{Y Axis}" xyexey
sleep "$delay"
xpaset -p ds9 plot close
xpaset -p ds9 plot close
xpaset -p ds9 plot close
xpaset -p ds9 plot close

cat plot/xy.dat | xpaset ds9 plot new name foo bar "{The Title}" "{X Axis}" "{Y Axis}" xy
cat plot/xyex.dat | xpaset ds9 plot new name foo bar "{The Title}" "{X Axis}" "{Y Axis}" xyex
cat plot/xyey.dat | xpaset ds9 plot new name foo bar "{The Title}" "{X Axis}" "{Y Axis}" xyey
cat plot/xyexey.dat | xpaset ds9 plot new name foo bar "{The Title}" "{X Axis}" "{Y Axis}" xyexey
sleep "$delay"
xpaset -p ds9 plot close
xpaset -p ds9 plot close
xpaset -p ds9 plot close
xpaset -p ds9 plot close

cat plot/xy.dat | xpaset ds9 plot new name foo scatter "{The Title}" "{X Axis}" "{Y Axis}" xy
cat plot/xyex.dat | xpaset ds9 plot new name foo scatter "{The Title}" "{X Axis}" "{Y Axis}" xyex
cat plot/xyey.dat | xpaset ds9 plot new name foo scatter "{The Title}" "{X Axis}" "{Y Axis}" xyey
cat plot/xyexey.dat | xpaset ds9 plot new name foo scatter "{The Title}" "{X Axis}" "{Y Axis}" xyexey
sleep "$delay"
xpaset -p ds9 plot close
xpaset -p ds9 plot close
xpaset -p ds9 plot close
xpaset -p ds9 plot close
echo "PASSED"

xpaset -p ds9 quit

echo "DONE"