function A = hotspin_plot_amp( x,y,z, sensor_direction)
% plot amplitudes along x or z axis
% sensor_direction: 1=sensor x-driection, 2=sensor y-direction, 3=sensor z-direction
% exaple call: hotspin_plot_amp( 0.20, 0, -0.05:0.001:0.05, 3);

% set color order to R G B
set(0,'DefaultAxesColorOrder',[1 0 0;.3 .7 0;0 0 1], 'DefaultAxesLineStyleOrder','-|--|:')

% clear A
A=[];

% if x is not size one, plot along x axis. else polt along z axis
[a,b] = size( x);
if( b > 1)
    % calc amps for each step along x axis
    for c=x
        amps = hotspin_I_amplitudes( c, y, z, sensor_direction);
        A=[A;amps];
    end 
    plot( x, A);
    xlabel( 'x [m]');
    title( ['Sensorrichtung: ', sensor_direction+119, '; y=', num2str( y), '; z=', num2str(z)]);
else   
    % calc amps for each step along z axis
    for c=z
        amps = hotspin_I_amplitudes( x, y, c, sensor_direction);
        A=[A;amps];
    end
    plot( z, A);
    title( ['Sensorrichtung: ', sensor_direction+119, '; x=', num2str( x), '; y=', num2str(y)]);
    xlabel( 'z [m]');
end    
% axis([-Inf,+Inf,0,1.8E-4])
ylabel( 'I_{ij} Amplitude [Vs/Am^4]');
legend( ['x: I_{' num2str( sensor_direction) '1}'], ['y: I_{' num2str( sensor_direction) '2}'], ['z: I_{' num2str( sensor_direction) '3}']); 
