Last change
on this file since 4 was
4,
checked in by zhangj, 10 years ago
|
Initial import--MML version from SOLEIL@2013
|
File size:
641 bytes
|
Line | |
---|
1 | function varargout = plotcod |
---|
2 | %PLOTMODELORBIT - Plot closed orbit distortion |
---|
3 | % |
---|
4 | % ALGORITHM |
---|
5 | % See modeltwiss and getpvmodel |
---|
6 | |
---|
7 | % |
---|
8 | % Written by Gregory J. Portmann |
---|
9 | % Modified by Laurent S. Nadolski |
---|
10 | |
---|
11 | [x, y, sx, sy] = modeltwiss('x','All','All'); |
---|
12 | [BPMx, BPMy, sBPMx, sBPMy] = modeltwiss('x','BPMx','BPMz'); |
---|
13 | |
---|
14 | |
---|
15 | h1 = subplot(5,1,[1 2]); |
---|
16 | |
---|
17 | plot(sx, 1000*x,'b'); |
---|
18 | title('Closed Orbit'); |
---|
19 | ylabel('Horizontal [mm]'); |
---|
20 | xlim([0 sx(end)]); |
---|
21 | |
---|
22 | |
---|
23 | h2 = subplot(5,1,3) |
---|
24 | drawlattice |
---|
25 | set(h2,'YTick',[]) |
---|
26 | |
---|
27 | h3 = subplot(5,1,[4 5]); |
---|
28 | plot(sx, 1000*y,'b'); |
---|
29 | |
---|
30 | ylabel('Vertical [mm]'); |
---|
31 | xlabel('Position [m]'); |
---|
32 | |
---|
33 | linkaxes([h1 h2 h3],'x') |
---|
34 | set([h1 h2 h3],'XGrid','On','YGrid','On'); |
---|
Note: See
TracBrowser
for help on using the repository browser.