function A = hotspin_plot_I( sx, sy, sz, step1, step2, sensor_direction)
% creates sensor sensitivity curves during specimen rotation at the specified sensor location:
% * step1, step2 angle range
% * sx, sy, sz:  position of sensor
% * sensor_direction: 1=sensor x-driection, 2=sensor y-direction, 3=sensor z-direction
% example call: hotspin_plot_I( .15, 0, -.045, -100, +100, 1);


% get X values
X = step1:step2;

% get Y values
A = hotspin_I_vs_phi( sx, sy, sz, step1, step2, sensor_direction);

% plot X vs A
plot(X, A);

% make everything nice
% set color order to R G B
set(0,'DefaultAxesColorOrder',[1 0 0;.3 .7 0;0 0 1], 'DefaultAxesLineStyleOrder','-|--|:')
legend( ['x: I_{' num2str( sensor_direction) '1}'], ['y: I_{' num2str( sensor_direction) '2}'], ['z: I_{' num2str( sensor_direction) '3}']); 
xlabel( '\phi [Drehgeberschritte]');
ylabel( 'I_{ij}  [Vs/Am^4]');
title( ['Sensorrichtung: ', sensor_direction+119, '; s_x=', num2str( sx), '; s_y=', num2str( sy), '; s_z=', num2str( sz)]);
% axis([-Inf,Inf,-1.00E-4,1.80E-4]);