-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathplot.sh
More file actions
executable file
·196 lines (173 loc) · 6.67 KB
/
Copy pathplot.sh
File metadata and controls
executable file
·196 lines (173 loc) · 6.67 KB
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
echo "Starting DS9..."
if [ `xpaaccess DS9Test` = no ]; then
ds9 -title DS9Test -tcl&
i=1
while [ "$i" -le 10 ]
do
sleep 2
if [ `xpaaccess DS9Test` = yes ]; then
break
fi
i=`expr $i + 1`
done
fi
echo
echo "*** plot.sh ***"
delay=.5
echo -n "file xy|xyex|xyey|xyexey..."
xpaset -p DS9Test plot plot/xy.dat {The Title} {X Axis} {Y Axis} xy
xpaset -p DS9Test plot plot/xyex.dat {The Title} {X Axis} {Y Axis} xyex
xpaset -p DS9Test plot plot/xyey.dat {The Title} {X Axis} {Y Axis} xyey
xpaset -p DS9Test plot plot/xyexey.dat {The Title} {X Axis} {Y Axis} xyexey
sleep "$delay"
xpaset -p DS9Test plot close
xpaset -p DS9Test plot close
xpaset -p DS9Test plot close
xpaset -p DS9Test plot close
echo "PASSED"
echo -n "line file xy|xyex|xyey|xyexey..."
xpaset -p DS9Test plot line plot/xy.dat {The Title} {X Axis} {Y Axis} xy
xpaset -p DS9Test plot line plot/xyex.dat {The Title} {X Axis} {Y Axis} xyex
xpaset -p DS9Test plot line plot/xyey.dat {The Title} {X Axis} {Y Axis} xyey
xpaset -p DS9Test plot line plot/xyexey.dat {The Title} {X Axis} {Y Axis} xyexey
sleep "$delay"
xpaset -p DS9Test plot close
xpaset -p DS9Test plot close
xpaset -p DS9Test plot close
xpaset -p DS9Test plot close
xpaset -p DS9Test plot bar plot/xy.dat {The Title} {X Axis} {Y Axis} xy
xpaset -p DS9Test plot bar plot/xyex.dat {The Title} {X Axis} {Y Axis} xyex
xpaset -p DS9Test plot bar plot/xyey.dat {The Title} {X Axis} {Y Axis} xyey
xpaset -p DS9Test plot bar plot/xyexey.dat {The Title} {X Axis} {Y Axis} xyexey
sleep "$delay"
xpaset -p DS9Test plot close
xpaset -p DS9Test plot close
xpaset -p DS9Test plot close
xpaset -p DS9Test plot close
# backward compatibility
xpaset -p DS9Test plot scatter plot/xy.dat {The Title} {X Axis} {Y Axis} xy
xpaset -p DS9Test plot scatter plot/xyex.dat {The Title} {X Axis} {Y Axis} xyex
xpaset -p DS9Test plot scatter plot/xyey.dat {The Title} {X Axis} {Y Axis} xyey
xpaset -p DS9Test plot scatter plot/xyexey.dat {The Title} {X Axis} {Y Axis} xyexey
sleep "$delay"
xpaset -p DS9Test plot close
xpaset -p DS9Test plot close
xpaset -p DS9Test plot close
xpaset -p DS9Test plot close
echo "PASSED"
echo -n "stdin 2|3|4|5..."
cat plot/stdin.2.dat | xpaset DS9Test plot line stdin
cat plot/stdin.3.dat | xpaset DS9Test plot line stdin
cat plot/stdin.4.dat | xpaset DS9Test plot line stdin
cat plot/stdin.5.dat | xpaset DS9Test plot line stdin
sleep "$delay"
xpaset -p DS9Test plot close
xpaset -p DS9Test plot close
xpaset -p DS9Test plot close
xpaset -p DS9Test plot close
cat plot/stdin.2.dat | xpaset DS9Test plot bar stdin
cat plot/stdin.3.dat | xpaset DS9Test plot bar stdin
cat plot/stdin.4.dat | xpaset DS9Test plot bar stdin
cat plot/stdin.5.dat | xpaset DS9Test plot bar stdin
sleep "$delay"
xpaset -p DS9Test plot close
xpaset -p DS9Test plot close
xpaset -p DS9Test plot close
xpaset -p DS9Test plot close
# backward compatibility
cat plot/stdin.2.dat | xpaset DS9Test plot scatter stdin
cat plot/stdin.3.dat | xpaset DS9Test plot scatter stdin
cat plot/stdin.4.dat | xpaset DS9Test plot scatter stdin
cat plot/stdin.5.dat | xpaset DS9Test plot scatter stdin
sleep "$delay"
xpaset -p DS9Test plot close
xpaset -p DS9Test plot close
xpaset -p DS9Test plot close
xpaset -p DS9Test plot close
echo "PASSED"
echo -n "stdin xy|xyex|xyey|xyexey..."
cat plot/stdin.xy.dat | xpaset DS9Test plot line stdin
cat plot/stdin.xyex.dat | xpaset DS9Test plot line stdin
cat plot/stdin.xyey.dat | xpaset DS9Test plot line stdin
cat plot/stdin.xyexey.dat | xpaset DS9Test plot line stdin
sleep "$delay"
xpaset -p DS9Test plot close
xpaset -p DS9Test plot close
xpaset -p DS9Test plot close
xpaset -p DS9Test plot close
cat plot/stdin.xy.dat | xpaset DS9Test plot bar stdin
cat plot/stdin.xyex.dat | xpaset DS9Test plot bar stdin
cat plot/stdin.xyey.dat | xpaset DS9Test plot bar stdin
cat plot/stdin.xyexey.dat | xpaset DS9Test plot bar stdin
sleep "$delay"
xpaset -p DS9Test plot close
xpaset -p DS9Test plot close
xpaset -p DS9Test plot close
xpaset -p DS9Test plot close
# backward compatibility
cat plot/stdin.xy.dat | xpaset DS9Test plot scatter stdin
cat plot/stdin.xyex.dat | xpaset DS9Test plot scatter stdin
cat plot/stdin.xyey.dat | xpaset DS9Test plot scatter stdin
cat plot/stdin.xyexey.dat | xpaset DS9Test plot scatter stdin
sleep "$delay"
xpaset -p DS9Test plot close
xpaset -p DS9Test plot close
xpaset -p DS9Test plot close
xpaset -p DS9Test plot close
echo "PASSED"
echo -n "stdin text|error..."
cat plot/stdin.error.dat | xpaset DS9Test plot line stdin
cat plot/stdin.text.dat | xpaset DS9Test plot line stdin
sleep "$delay"
xpaset -p DS9Test plot close
echo "PASSED"
echo -n "4|5..."
cat plot/4.dat | xpaset DS9Test plot line {The Title} {X Axis} {Y Axis} 4
cat plot/5.dat | xpaset DS9Test plot line {The Title} {X Axis} {Y Axis} 5
sleep "$delay"
xpaset -p DS9Test plot close
xpaset -p DS9Test plot close
cat plot/4.dat | xpaset DS9Test plot bar {The Title} {X Axis} {Y Axis} 4
cat plot/5.dat | xpaset DS9Test plot bar {The Title} {X Axis} {Y Axis} 5
sleep "$delay"
xpaset -p DS9Test plot close
xpaset -p DS9Test plot close
# backward compatibility
cat plot/4.dat | xpaset DS9Test plot scatter {The Title} {X Axis} {Y Axis} 4
cat plot/5.dat | xpaset DS9Test plot scatter {The Title} {X Axis} {Y Axis} 5
sleep "$delay"
xpaset -p DS9Test plot close
xpaset -p DS9Test plot close
echo "PASSED"
echo -n "xy|xyex|xyey|xyexey..."
cat plot/xy.dat | xpaset DS9Test plot line {The Title} {X Axis} {Y Axis} xy
cat plot/xyex.dat | xpaset DS9Test plot line {The Title} {X Axis} {Y Axis} xyex
cat plot/xyey.dat | xpaset DS9Test plot line {The Title} {X Axis} {Y Axis} xyey
cat plot/xyexey.dat | xpaset DS9Test plot line {The Title} {X Axis} {Y Axis} xyexey
sleep "$delay"
xpaset -p DS9Test plot close
xpaset -p DS9Test plot close
xpaset -p DS9Test plot close
xpaset -p DS9Test plot close
cat plot/xy.dat | xpaset DS9Test plot bar {The Title} {X Axis} {Y Axis} xy
cat plot/xyex.dat | xpaset DS9Test plot bar {The Title} {X Axis} {Y Axis} xyex
cat plot/xyey.dat | xpaset DS9Test plot bar {The Title} {X Axis} {Y Axis} xyey
cat plot/xyexey.dat | xpaset DS9Test plot bar {The Title} {X Axis} {Y Axis} xyexey
sleep "$delay"
xpaset -p DS9Test plot close
xpaset -p DS9Test plot close
xpaset -p DS9Test plot close
xpaset -p DS9Test plot close
# backward compatibility
cat plot/xy.dat | xpaset DS9Test plot scatter {The Title} {X Axis} {Y Axis} xy
cat plot/xyex.dat | xpaset DS9Test plot scatter {The Title} {X Axis} {Y Axis} xyex
cat plot/xyey.dat | xpaset DS9Test plot scatter {The Title} {X Axis} {Y Axis} xyey
cat plot/xyexey.dat | xpaset DS9Test plot scatter {The Title} {X Axis} {Y Axis} xyexey
sleep "$delay"
xpaset -p DS9Test plot close
xpaset -p DS9Test plot close
xpaset -p DS9Test plot close
xpaset -p DS9Test plot close
echo "PASSED"
xpaset -p DS9Test quit
echo "DONE"