source: TRACY3/trunk/tracy/gnuplot/beam_envelope.plt @ 3

Last change on this file since 3 was 3, checked in by zhangj, 12 years ago

Initiale import

  • Property svn:executable set to *
File size: 2.8 KB
Line 
1ps = 0; eps = 1;
2
3if (!ps) set terminal x11;
4if (ps && !eps) \
5  set terminal postscript enhanced color solid lw 2 "Times-Roman" 20;
6if (ps && eps) \
7  set terminal postscript eps enhanced color solid lw 2 "Times-Roman" 20;
8
9set grid;
10
11set style line 1 lt 1 lw 1 lc rgb "blue";
12set style line 2 lt 1 lw 1 lc rgb "green";
13set style line 3 lt 1 lw 1 lc rgb "red";
14
15if (ps) set output "beam_envelope_1.ps"
16set title "{/Symbol e}^*_x";
17set xlabel "s [m]"; set ylabel "[nm{/Symbol \327}rad]";
18set yrange [0:];
19set y2range [-1.5:20];
20
21plot "linlat.out" using 3:4 axis x1y2 notitle with fsteps lt 1 lw 1 \
22     lc rgb "black", \
23     "beam_envelope.out" using 3:(1e9*sqrt($4*$5-$6*$6)) \
24     notitle with lines ls 1;
25
26if (!ps) pause -1;
27
28if (ps) set output "beam_envelope_2.ps"
29set title "{/Symbol e}^*_y";
30set xlabel "s [m]"; set ylabel "[nm{/Symbol \327}rad]";
31set yrange [0:];
32set y2range [-1.5:20];
33
34plot "linlat.out" using 3:4 axis x1y2 notitle with fsteps lt 1 lw 1 \
35     lc rgb "black", \
36     "beam_envelope.out" using 3:(1e9*sqrt($7*$8-$9*$9)) notitle \
37     with lines ls 1;
38
39if (!ps) pause -1;
40
41if (ps) set output "beam_envelope_3.ps"
42set title "{/Symbol s}_x";
43set xlabel "s [m]"; set ylabel "[{/Symbol m}m]";
44set yrange [0:];
45set y2range [-1.5:20];
46
47plot "linlat.out" using 3:4 axis x1y2 notitle with fsteps lt 1 lw 1 \
48     lc rgb "black", \
49     "beam_envelope.out" using 3:(1e6*sqrt($4)) notitle with lines ls 1;
50
51if (!ps) pause -1;
52
53if (ps) set output "beam_envelope_4.ps"
54set title "{/Symbol s}_{p_x}";
55set xlabel "s [m]"; set ylabel "[{/Symbol m}rad]";
56set yrange [0:];
57set y2range [-1.5:20];
58
59plot "linlat.out" using 3:4 axis x1y2 notitle with fsteps lt 1 lw 1 \
60     lc rgb "black", \
61     "beam_envelope.out" using 3:(1e6*sqrt($5)) notitle with lines ls 1;
62
63if (!ps) pause -1;
64
65if (ps) set output "beam_envelope_5.ps"
66set title "{/Symbol s}_y";
67set xlabel "s [m]"; set ylabel "[{/Symbol m}m]";
68set yrange [0:];
69set y2range [-1.5:20];
70
71plot "linlat.out" using 3:4 axis x1y2 notitle with fsteps lt 1 lw 1 \
72     lc rgb "black", \
73     "beam_envelope.out" using 3:(1e6*sqrt($7)) notitle with lines ls 3;
74
75if (!ps) pause -1;
76
77if (ps) set output "beam_envelope_6.ps"
78set title "{/Symbol s}_{p_y}";
79set xlabel "s [m]"; set ylabel "[{/Symbol m}rad]";
80set yrange [0:];
81set y2range [-1.5:20];
82
83plot "linlat.out" using 3:4 axis x1y2 notitle with fsteps lt 1 lw 1 \
84     lc rgb "black", \
85     "beam_envelope.out" using 3:(1e6*sqrt($8)) notitle with lines ls 3;
86
87if (!ps) pause -1;
88
89if (ps) set output "beam_envelope_7.ps"
90set title "Transverse Coupling Angle";
91set xlabel "s [m]"; set ylabel "[{/Symbol \260}]";
92set autoscale y;
93set y2range [-1.5:20];
94
95plot "linlat.out" using 3:4 axis x1y2 notitle with fsteps lt 1 lw 1 \
96     lc rgb "black", \
97     "beam_envelope.out" using 3:10 notitle with lines ls 1;
98
99if (!ps) pause -1;
Note: See TracBrowser for help on using the repository browser.