Home > pubtools > LatticeTuningFunctions > errors > errordisplayfunctions > pltmisalignments.m

pltmisalignments

PURPOSE ^

DEFAULTPLOT Default plotting function for ATPLOT

SYNOPSIS ^

function plotdata=pltmisalignments(lindata,ring,dpp,varargin) %#ok

DESCRIPTION ^

DEFAULTPLOT    Default plotting function for ATPLOT

Plots orbits, misalignments and tilts.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function plotdata=pltmisalignments(lindata,ring,dpp,varargin) %#ok<INUSD>
0002 %DEFAULTPLOT    Default plotting function for ATPLOT
0003 %
0004 %Plots orbits, misalignments and tilts.
0005 
0006 CoD=cat(2,lindata.ClosedOrbit);
0007 [X,Y,Tilt]=GetMisalignments(ring);
0008 % T=T-pi/2;
0009 % T(T==pi/2)=0;
0010 % T(T==-pi/2)=0;
0011 
0012 X=[X,0];
0013 Y=[Y,0];
0014 Tilt=[Tilt,0];
0015 % tiltedelem=findcells(ring,'Tilt');
0016 % tiltval=[getcellstruct(ring,'Tilt',tiltedelem); 0];
0017 
0018 % plotdata(1).values=[CoD(1,:)' CoD(3,:)' X' Y']*1e6;%
0019 % plotdata(1).labels={'x','z','x misal','z misal'};
0020 % plotdata(1).axislabel='orbits and misalignments [micro m]';
0021 plotdata(1).values=[X' Y']*1e6;%
0022 plotdata(1).labels={'x misal','z misal'};
0023 plotdata(1).axislabel='misalignments [micro m]';
0024 % % CoD(1,:)'
0025 plotdata(2).values=[Tilt']*1e6;
0026 plotdata(2).labels={'Rot. s-axis'};
0027 plotdata(2).axislabel='Rotation [micro rad]';
0028 
0029 end

Generated on Thu 24-Aug-2017 18:47:33 by m2html © 2005