source: TRACY3/trunk/tracy/gnuplot/dynap_err.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.5 KB
Line 
1ps = 0; eps = 0; phys_app = 0;
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
15# draw projection of mechanical aperture
16Ax = 17.5; Ay = 12.5;
17beta_max_y = 25.5; beta_inj_y =  3.1;
18
19if (phys_app) \
20  x_hat = Ax; y_hat = Ay*sqrt(beta_inj_y/beta_max_y); \
21  set arrow from -x_hat, 0.0 to -x_hat, y_hat nohead \
22  lt 1 lw 1 lc rgb "black"; \
23  set arrow from -x_hat, y_hat to  x_hat, y_hat nohead \
24  lt 1 lw 1 lc rgb "black"; \
25  set arrow from  x_hat, y_hat to  x_hat,   0.0 nohead \
26  lt 1 lw 1 lc rgb "black";
27
28if (ps) set output "dynap_err_1.ps"
29set title "Dynamic Aperture\n";
30set xlabel "x [mm]"; set ylabel "y [mm]";
31plot "DA_bare_0.0.out" using  1:2 title "bare" with linespoints ls 1, \
32     "DA_real_0.0.out" using  1:2 notitle with points ls 3;
33if (!ps) pause -1;
34
35unset arrow;
36
37if (ps) set output "dynap_err_2.ps"
38set title "Horizontal Momentum Aperture\n";
39set xlabel "{/Symbol d} [%]"; set ylabel "x^ [mm]";
40set yrange [0:];
41plot "DA_bare.out" using 1:5 title "bare" with linespoints ls 2, \
42     "DA_real.out" using 1:11:13 title "w errors" with errorbars ls 1, \
43     "DA_real.out" using 1:11 notitle with lines ls 1;
44if (!ps) pause -1;
45
46if (ps) set output "dynap_err_3.ps"
47set title "Vertical Momentum Aperture\n";
48set xlabel "{/Symbol d} [%]"; set ylabel "y^ [mm]";
49set yrange [0:];
50plot "DA_bare.out" using 1:6 title "bare" with linespoints ls 2, \
51     "DA_real.out" using 1:14:16 title "w errors" with errorbars ls 3, \
52     "DA_real.out" using 1:14 notitle with lines ls 3;
53if (!ps) pause -1;
54
55if (ps) set output "dynap_err_4.ps"
56set title "Horizontal Momentum Acceptance\n";
57set xlabel "{/Symbol d} [%]"; set ylabel "A_x [mm{/Symbol \327}mrad]";
58set yrange [0:];
59plot "DA_bare.out" using 1:3 title "bare" with linespoints ls 2, \
60     "DA_real.out" using 1:5:7 title "w errors" with errorbars ls 1, \
61     "DA_real.out" using 1:5 notitle with lines ls 1;
62if (!ps) pause -1;
63
64
65if (ps) set output "dynap_err_5.ps"
66set title "Vertical Momentum Acceptance\n";
67set xlabel "{/Symbol d} [%]"; set ylabel "A_y [mm{/Symbol \327}mrad]";
68set yrange [0:];
69plot "DA_bare.out" using 1:4 title "bare" with linespoints ls 2, \
70     "DA_real.out" using 1:8:10 title "w errors" with errorbars ls 3, \
71     "DA_real.out" using 1:8 notitle with lines ls 3;
72if (!ps) pause -1;
Note: See TracBrowser for help on using the repository browser.