Last change
on this file since 17 was
17,
checked in by zhangj, 11 years ago
|
To have a stable version on the server.
|
-
Property svn:executable set to
*
|
File size:
799 bytes
|
Line | |
---|
1 | function tracy_plotnudx(file1, file2) |
---|
2 | % tracy_plotnudxT(file) - plot tuneshift with amplitude from tracy output file |
---|
3 | % |
---|
4 | % INPUTS |
---|
5 | % 1. file: filename to read |
---|
6 | |
---|
7 | if nargin == 0 |
---|
8 | data = tracy_readnudx; |
---|
9 | else |
---|
10 | data = tracy_readnudx(file1, file2); |
---|
11 | end |
---|
12 | |
---|
13 | %% amplitude |
---|
14 | x = data.x; |
---|
15 | z = data.z; |
---|
16 | |
---|
17 | %% fractional tunes |
---|
18 | nux1 = data.nuxx; |
---|
19 | nuz1 = data.nuzx; |
---|
20 | |
---|
21 | nux2 = data.nuxz; |
---|
22 | nuz2 = data.nuzz; |
---|
23 | |
---|
24 | %% Set default properties |
---|
25 | set(0,'DefaultAxesXgrid','on'); |
---|
26 | set(0,'DefaultAxesYgrid','on'); |
---|
27 | |
---|
28 | %% Plot |
---|
29 | figure(43) |
---|
30 | clf('reset'); |
---|
31 | subplot(2,2,1) |
---|
32 | plot(x,nux1,'.') |
---|
33 | xlabel('x (mm)') |
---|
34 | ylabel('\nu_x') |
---|
35 | |
---|
36 | subplot(2,2,3) |
---|
37 | plot(x,nuz1,'.') |
---|
38 | xlabel('x (mm)') |
---|
39 | ylabel('\nu_z') |
---|
40 | |
---|
41 | subplot(2,2,2) |
---|
42 | plot(z,nux2,'.') |
---|
43 | xlabel('z (mm)') |
---|
44 | ylabel('\nu_x') |
---|
45 | |
---|
46 | subplot(2,2,4) |
---|
47 | plot(z,nuz2,'.') |
---|
48 | xlabel('z (mm)') |
---|
49 | ylabel('\nu_z') |
---|
50 | |
---|
51 | addlabel(0,0,datestr(now)) |
---|
Note: See
TracBrowser
for help on using the repository browser.