Home > pubtools > Aperture > plotAperture.m

plotAperture

PURPOSE ^

function plotdata=plotAperture(lindata,ring,dpp,varargin) %#ok<INUSD>

SYNOPSIS ^

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

DESCRIPTION ^

function plotdata=plotAperture(lindata,ring,dpp,varargin) %#ok<INUSD>

 Plots x and y aperture.
 
 use with atplot(atlattice,@plotAperture);

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function plotdata=plotAperture(lindata,ring,dpp,varargin) %#ok<INUSD>
0002 %function plotdata=plotAperture(lindata,ring,dpp,varargin) %#ok<INUSD>
0003 %
0004 % Plots x and y aperture.
0005 %
0006 % use with atplot(atlattice,@plotAperture);
0007 %
0008 
0009 apind=findcells(ring,'Limits');
0010 
0011 xm=getcellstruct(ring,'Limits',apind,1);
0012 ym=getcellstruct(ring,'Limits',apind,3);
0013 xp=getcellstruct(ring,'Limits',apind,2);
0014 yp=getcellstruct(ring,'Limits',apind,4);
0015 
0016 Xp=[nan(size(ring)); nan];
0017 Xm=Xp;
0018 Yp=Xp;
0019 Ym=Xp;
0020 
0021 Xp(apind)=xp;
0022 Xm(apind)=xm;
0023 Yp(apind)=yp;
0024 Ym(apind)=ym;
0025 
0026 plotdata(1).values=[Xp Xm Yp Ym]*1e2;%
0027 plotdata(1).labels={'x aperture','x aperture','y aperture','y aperture'};
0028 plotdata(1).axislabel='x or y aperture [cm]';
0029 %
0030 % plotdata(2).values=[Yp Ym]*1e2;%
0031 % plotdata(2).labels={'y aperture','y aperture'};
0032 % plotdata(2).axislabel='y aperture [cm]';
0033 %
0034 
0035 end

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