| 1 |
macro pf "A.dat", "2" |
| 2 |
"simple plot of a file" |
| 3 |
read_data($1, type=raw, group=my) |
| 4 |
plot(my.1, my.$2, $3) |
| 5 |
end macro |
| 6 |
|
| 7 |
macro bkg "x.xmu", "my", "rbkg=1" |
| 8 |
"very simple background subtraction" |
| 9 |
read_data( $1, type=xmu, group=$2) |
| 10 |
kweight = 1 |
| 11 |
rbkg = 1.0 |
| 12 |
spline ($2.energy, $2.xmu, kmin = 0, kmax = 0,$3) |
| 13 |
newplot($2.energy, $2.xmu, group, color = blue) |
| 14 |
plot ($2.energy, $2.bkg, style = dashed, color = tomato ) |
| 15 |
end macro |
| 16 |
|
| 17 |
macro pre "x.xmu" |
| 18 |
"quick pre-edge subtraction" |
| 19 |
read_data( $1, type=xmu, group=my) |
| 20 |
pre_edge(energy, xmu) |
| 21 |
end macro |
| 22 |
|
| 23 |
macro feff_path "0001" |
| 24 |
"define a path from a feff file" |
| 25 |
path ($1, feff$1.dat, label = $1, $2) |
| 26 |
end macro |
| 27 |
|
| 28 |
macro make_ps ifeffit.ps /cps |
| 29 |
"dump plot to a postscript file" |
| 30 |
plot(device=$2, file= $1) |
| 31 |
plot(device="/xserve",file= "") |
| 32 |
end macro |
| 33 |
|
| 34 |
macro make_gif |
| 35 |
"dump plot to a gif file" |
| 36 |
plot(device="/gif",file= $1) |
| 37 |
plot(device="/xserve",file= "") |
| 38 |
end macro |
| 39 |
|
| 40 |
macro testplot |
| 41 |
"test plot" |
| 42 |
my.x = indarr(500)/35. |
| 43 |
my.y1 = (exp(-my.x / 13) * 2* cos(my.x *2.3 )) |
| 44 |
my.y2 = (exp(-my.x/ 7.5) * (20/sqrt(my.x)) * sin(my.x/5) * |
| 45 |
(cos(my.x*4)) + cos((my.x+2.50)*2) / 4 ) |
| 46 |
newplot(my.x,my.y1, color=red) |
| 47 |
plot(my.x,my.y2, color=blue) |
| 48 |
end macro |
| 49 |
|
| 50 |
|
| 51 |
macro srfit |
| 52 |
"plot R-space data/fit from Feffit files' |
| 53 |
read_data($1r.dat, type = rsp, group = dat) |
| 54 |
read_data($1r.fit, type = rsp, group = fit) |
| 55 |
newplot(r,chir_mag, group=dat, $2) |
| 56 |
plot(r,chir_mag, group=fit, $3) |
| 57 |
end macro |
| 58 |
|
| 59 |
macro skfit |
| 60 |
"plot k-space data/fit from Feffit files' |
| 61 |
read_data($1k.dat, type = chi, group = dat) |
| 62 |
read_data($1k.fit, type = chi, group = fit) |
| 63 |
newplot(k,chi, group=dat, $2) |
| 64 |
plot(k,chi, group=fit, $3) |
| 65 |
end macro |
| 66 |
|
| 67 |
macro skwfit |
| 68 |
"plot k-weighted k-space data/fit from Feffit files' |
| 69 |
read_data($1k.dat, type = chi, group = dat) |
| 70 |
read_data($1k.fit, type = chi, group = fit) |
| 71 |
dat.chik = dat.chi * dat.k^($2) |
| 72 |
fit.chik = fit.chi * fit.k^($2) |
| 73 |
newplot(k,chik, group=dat, $3) |
| 74 |
plot(k,chik, group=fit, $4) |
| 75 |
end macro |
| 76 |
|
| 77 |
macro sqfit |
| 78 |
"plot Q-space data/fit from Feffit files' |
| 79 |
read_data($1q.dat, type = chi, group = qdat) |
| 80 |
read_data($1q.fit, type = chi, group = qfit) |
| 81 |
newplot(k,chi, group=qdat, $2) |
| 82 |
plot(k,chi, group=qfit, $3) |
| 83 |
end macro |
| 84 |
|