% timeSignalPlot.m This function plot the signal in time domain with a line
% corresponding to current analysis

function [ ] = timeSignalPlot( spsMean, verticalLimit, blockIndex, stepSize, bufferSize )

plot( spsMean, 'Color', 'k' );
xlim( [ 0 length( spsMean ) ] )
ylim( verticalLimit )
axis off

% % center line of window
% index       = ( blockIndex - 1 ) * stepSize + bufferSize/2;
% line( [ index index ], verticalLimit );

% window
indexStart      = ( blockIndex - 1 ) * stepSize;
line( [ indexStart indexStart ], verticalLimit );
indexEnd        = ( blockIndex - 1 ) * stepSize + bufferSize;
line( [ indexEnd indexEnd ], verticalLimit );