-
Notifications
You must be signed in to change notification settings - Fork 0
/
20011207_Polarimetry.gp,v
220 lines (184 loc) · 9.28 KB
/
20011207_Polarimetry.gp,v
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
head 12.4;
access;
symbols;
locks
dan:12.4; strict;
comment @# @;
12.4
date 2020.09.24.14.56.54; author dan; state Exp;
branches;
next 12.3;
12.3
date 2020.09.23.15.25.32; author dan; state Exp;
branches;
next 12.2;
12.2
date 2003.01.11.02.12.07; author dan; state Exp;
branches;
next 12.1;
12.1
date 2002.11.24.12.51.53; author dan; state Exp;
branches;
next 4.2;
4.2
date 2002.09.06.15.19.16; author dan; state Exp;
branches;
next 4.1;
4.1
date 2002.08.06.12.09.17; author dan; state Exp;
branches;
next ;
desc
@Plotting script for data from 7th December 2001
@
12.4
log
@Further work to adapt to new Gnuplot syntax.
@
text
@# Copyright 2002 D. C. Hatton
#
# D. C. Hatton can be contacted on dan.hatton@@btinternet.com
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program (in the file copying.programs;) if not,
# write to the Free Software Foundation, Inc., 59 Temple Place, Suite
# 330, Boston, MA 02111-1307 USA
# This plots the data from 7th December 2001
set pointsize 0.01
set style data xyerrorbars
set key below
set size 1, 2
set terminal pslatex
set color
set xlabel "$E_b/\\ut{eV}$"
set ylabel "$I_d/\\ut{fA}$"
set output '20011207_Polarimetry.tex'
plot '20011207_Polarimetry.dat' using 3:($1 >= 0 && $2 < 1.5 ? $8 : 1/0):4:9 title 'Magnetization up, detector 1', '20011207_Polarimetry.dat' using 3:($1 >= 0 && $2 >= 1.5 ? $8 : 1/0):4:9 title 'Magnetization up, detector 2', '20011207_Polarimetry.dat' using 3:($1 < 0 && $2 < 1.5 ? $8 : 1/0):4:9 title 'Magnetization down, detector 1', '20011207_Polarimetry.dat' using 3:($1 < 0 && $2 >= 1.5 ? $8 : 1/0):4:9 title 'Magnetization down, detector 2'
set terminal png
set color
set xlabel "Eb/eV"
set ylabel "Id/fA"
set output '20011207_Polarimetry.png'
plot '20011207_Polarimetry.dat' using 3:($1 >= 0 && $2 < 1.5 ? $8 : 1/0):4:9 title 'Magnetization up, detector 1', '20011207_Polarimetry.dat' using 3:($1 >= 0 && $2 >= 1.5 ? $8 : 1/0):4:9 title 'Magnetization up, detector 2', '20011207_Polarimetry.dat' using 3:($1 < 0 && $2 < 1.5 ? $8 : 1/0):4:9 title 'Magnetization down, detector 1', '20011207_Polarimetry.dat' using 3:($1 < 0 && $2 >= 1.5 ? $8 : 1/0):4:9 title 'Magnetization down, detector 2'
@
12.3
log
@Syntax updated for newer Gnuplot versions.
@
text
@d26 2
a27 1
set terminal pslatex color
d34 2
a35 1
set terminal png color
@
12.2
log
@Typographical errors corrected.
@
text
@d22 1
a22 1
set data style xyerrorbars
@
12.1
log
@Writing of experimental method, including some new diagrams, started.
@
text
@a20 2
load 'postautumn.gp'
a38 28
# set terminal pslatex color
# set xlabel "$E_b/\\ut{eV}$"
# set ylabel "$I_p/\\ut{fA}$"
# set output '20011207_positioned.tex'
# plot '20011207_Polarimetry.dat' using 3:($1 >= 0 && $2 < 1.5 ? $8/P_4_0 : 1/0):4:($9/P_4_0) title 'Magnetization up, detector 1', '20011207_Polarimetry.dat' using 3:($1 >= 0 && $2 >= 1.5 ? $8/P_4_0 : 1/0):4:($9/P_4_0) title 'Magnetization up, detector 2', '20011207_Polarimetry.dat' using 3:($1 < 0 && $2 < 1.5 ? $8/P_4_1 : 1/0):4:($9/P_4_1) title 'Magnetization down, detector 1', '20011207_Polarimetry.dat' using 3:($1 < 0 && $2 >= 1.5 ? $8/P_4_1 : 1/0):4:($9/P_4_1) title 'Magnetization down, detector 2'
# set terminal png color
# set xlabel "Eb/eV"
# set ylabel "Ip/fA"
# set output '20011207_positioned.png'
# plot '20011207_Polarimetry.dat' using 3:($1 >= 0 && $2 < 1.5 ? $8/P_4_0 : 1/0):4:($9/P_4_0) title 'Magnetization up, detector 1', '20011207_Polarimetry.dat' using 3:($1 >= 0 && $2 >= 1.5 ? $8/P_4_0 : 1/0):4:($9/P_4_0) title 'Magnetization up, detector 2', '20011207_Polarimetry.dat' using 3:($1 < 0 && $2 < 1.5 ? $8/P_4_1 : 1/0):4:($9/P_4_1) title 'Magnetization down, detector 1', '20011207_Polarimetry.dat' using 3:($1 < 0 && $2 >= 1.5 ? $8/P_4_1 : 1/0):4:($9/P_4_1) title 'Magnetization down, detector 2'
# set terminal pslatex color
# set xlabel "$E_b/\\ut{eV}$"
# set ylabel "$I_a/\\ut{fA}$"
# set output '20011207_perfect.tex'
# plot '20011207_Polarimetry.dat' using 3:($1 >= 0 && $2 < 1.5 ? $8/(P_4_0*eta_0) : 1/0):4:($9/(P_4_0*eta_0)) title 'Magnetization up, detector 1', '20011207_Polarimetry.dat' using 3:($1 >= 0 && $2 >= 1.5 ? $8/(P_4_0*eta_1) : 1/0):4:($9/(P_4_0*eta_1)) title 'Magnetization up, detector 2', '20011207_Polarimetry.dat' using 3:($1 < 0 && $2 < 1.5 ? $8/(P_4_1*eta_0) : 1/0):4:($9/(P_4_1*eta_0)) title 'Magnetization down, detector 1', '20011207_Polarimetry.dat' using 3:($1 < 0 && $2 >= 1.5 ? $8/(P_4_1*eta_1) : 1/0):4:($9/(P_4_1*eta_1)) title 'Magnetization down, detector 2'
# set terminal png color
# set xlabel "Eb/eV"
# set ylabel "Ia/fA"
# set output '20011207_perfect.png'
# plot '20011207_Polarimetry.dat' using 3:($1 >= 0 && $2 < 1.5 ? $8/(P_4_0*eta_0) : 1/0):4:($9/(P_4_0*eta_0)) title 'Magnetization up, detector 1', '20011207_Polarimetry.dat' using 3:($1 >= 0 && $2 >= 1.5 ? $8/(P_4_0*eta_1) : 1/0):4:($9/(P_4_0*eta_1)) title 'Magnetization up, detector 2', '20011207_Polarimetry.dat' using 3:($1 < 0 && $2 < 1.5 ? $8/(P_4_1*eta_0) : 1/0):4:($9/(P_4_1*eta_0)) title 'Magnetization down, detector 1', '20011207_Polarimetry.dat' using 3:($1 < 0 && $2 >= 1.5 ? $8/(P_4_1*eta_1) : 1/0):4:($9/(P_4_1*eta_1)) title 'Magnetization down, detector 2'
@
4.2
log
@Graphs of autumn PER data, corrected for instrumental asymmetries and
mis-positioning of sample, added.
@
text
@d26 1
a26 1
set size 1, 1.15
d42 3
a44 3
set terminal pslatex color
set xlabel "$E_b/\\ut{eV}$"
set ylabel "$I_p/\\ut{fA}$"
d46 2
a47 2
set output '20011207_positioned.tex'
plot '20011207_Polarimetry.dat' using 3:($1 >= 0 && $2 < 1.5 ? $8/P_4_0 : 1/0):4:($9/P_4_0) title 'Magnetization up, detector 1', '20011207_Polarimetry.dat' using 3:($1 >= 0 && $2 >= 1.5 ? $8/P_4_0 : 1/0):4:($9/P_4_0) title 'Magnetization up, detector 2', '20011207_Polarimetry.dat' using 3:($1 < 0 && $2 < 1.5 ? $8/P_4_1 : 1/0):4:($9/P_4_1) title 'Magnetization down, detector 1', '20011207_Polarimetry.dat' using 3:($1 < 0 && $2 >= 1.5 ? $8/P_4_1 : 1/0):4:($9/P_4_1) title 'Magnetization down, detector 2'
d49 3
a51 3
set terminal png color
set xlabel "Eb/eV"
set ylabel "Ip/fA"
d53 2
a54 2
set output '20011207_positioned.png'
plot '20011207_Polarimetry.dat' using 3:($1 >= 0 && $2 < 1.5 ? $8/P_4_0 : 1/0):4:($9/P_4_0) title 'Magnetization up, detector 1', '20011207_Polarimetry.dat' using 3:($1 >= 0 && $2 >= 1.5 ? $8/P_4_0 : 1/0):4:($9/P_4_0) title 'Magnetization up, detector 2', '20011207_Polarimetry.dat' using 3:($1 < 0 && $2 < 1.5 ? $8/P_4_1 : 1/0):4:($9/P_4_1) title 'Magnetization down, detector 1', '20011207_Polarimetry.dat' using 3:($1 < 0 && $2 >= 1.5 ? $8/P_4_1 : 1/0):4:($9/P_4_1) title 'Magnetization down, detector 2'
d56 3
a58 3
set terminal pslatex color
set xlabel "$E_b/\\ut{eV}$"
set ylabel "$I_a/\\ut{fA}$"
d60 2
a61 2
set output '20011207_perfect.tex'
plot '20011207_Polarimetry.dat' using 3:($1 >= 0 && $2 < 1.5 ? $8/(P_4_0*eta_0) : 1/0):4:($9/(P_4_0*eta_0)) title 'Magnetization up, detector 1', '20011207_Polarimetry.dat' using 3:($1 >= 0 && $2 >= 1.5 ? $8/(P_4_0*eta_1) : 1/0):4:($9/(P_4_0*eta_1)) title 'Magnetization up, detector 2', '20011207_Polarimetry.dat' using 3:($1 < 0 && $2 < 1.5 ? $8/(P_4_1*eta_0) : 1/0):4:($9/(P_4_1*eta_0)) title 'Magnetization down, detector 1', '20011207_Polarimetry.dat' using 3:($1 < 0 && $2 >= 1.5 ? $8/(P_4_1*eta_1) : 1/0):4:($9/(P_4_1*eta_1)) title 'Magnetization down, detector 2'
d63 3
a65 3
set terminal png color
set xlabel "Eb/eV"
set ylabel "Ia/fA"
d67 2
a68 2
set output '20011207_perfect.png'
plot '20011207_Polarimetry.dat' using 3:($1 >= 0 && $2 < 1.5 ? $8/(P_4_0*eta_0) : 1/0):4:($9/(P_4_0*eta_0)) title 'Magnetization up, detector 1', '20011207_Polarimetry.dat' using 3:($1 >= 0 && $2 >= 1.5 ? $8/(P_4_0*eta_1) : 1/0):4:($9/(P_4_0*eta_1)) title 'Magnetization up, detector 2', '20011207_Polarimetry.dat' using 3:($1 < 0 && $2 < 1.5 ? $8/(P_4_1*eta_0) : 1/0):4:($9/(P_4_1*eta_0)) title 'Magnetization down, detector 1', '20011207_Polarimetry.dat' using 3:($1 < 0 && $2 >= 1.5 ? $8/(P_4_1*eta_1) : 1/0):4:($9/(P_4_1*eta_1)) title 'Magnetization down, detector 2'
@
4.1
log
@Graph of data from 7th December 2001 added.
Typographical errors corrected.
@
text
@d21 2
d25 2
d33 1
a33 1
plot '20011207_Polarimetry.dat' using 3:($1==+1 && $2==1 ? $8 : 1/0):4:9 title 'Magnetization up, detector 1', '20011207_Polarimetry.dat' using 3:($1==+1 && $2==2 ? $8 : 1/0):4:9 title 'Magnetization up, detector 2', '20011207_Polarimetry.dat' using 3:($1==-1 && $2==1 ? $8 : 1/0):4:9 title 'Magnetization down, detector 1', '20011207_Polarimetry.dat' using 3:($1==-1 && $2==2 ? $8 : 1/0):4:9 title 'Magnetization down, detector 2'
d40 29
a68 1
plot '20011207_Polarimetry.dat' using 3:($1==+1 && $2==1 ? $8 : 1/0):4:9 title 'Magnetization up, detector 1', '20011207_Polarimetry.dat' using 3:($1==+1 && $2==2 ? $8 : 1/0):4:9 title 'Magnetization up, detector 2', '20011207_Polarimetry.dat' using 3:($1==-1 && $2==1 ? $8 : 1/0):4:9 title 'Magnetization down, detector 1', '20011207_Polarimetry.dat' using 3:($1==-1 && $2==2 ? $8 : 1/0):4:9 title 'Magnetization down, detector 2'
@