source: MML/trunk/machine/SOLEIL/common/naff/naffutils/tracy_plotnudx.m @ 4

Last change on this file since 4 was 4, checked in by zhangj, 11 years ago

Initial import--MML version from SOLEIL@2013

File size: 799 bytes
Line 
1function 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
7if nargin == 0
8    data = tracy_readnudx;
9else
10    data = tracy_readnudx(file1, file2);
11end
12
13%% amplitude
14x = data.x;
15z = data.z;
16
17%% fractional tunes
18nux1 = data.nuxx;
19nuz1 = data.nuzx;
20
21nux2 = data.nuxz;
22nuz2 = data.nuzz;
23
24%% Set default properties
25set(0,'DefaultAxesXgrid','on');
26set(0,'DefaultAxesYgrid','on');
27
28%% Plot
29figure(43)
30clf('reset');
31subplot(2,2,1)
32plot(x,nux1,'.')
33xlabel('x (mm)')
34ylabel('\nu_x')
35
36subplot(2,2,3)
37plot(x,nuz1,'.')
38xlabel('x (mm)')
39ylabel('\nu_z')
40
41subplot(2,2,2)
42plot(z,nux2,'.')
43xlabel('z (mm)')
44ylabel('\nu_x')
45
46subplot(2,2,4)
47plot(z,nuz2,'.')
48xlabel('z (mm)')
49ylabel('\nu_z')
50
51addlabel(0,0,datestr(now))
Note: See TracBrowser for help on using the repository browser.