
function pathPlot(data,rgb)

% pathPlot(data,rgb)

temp=size(data);
numFlies=(temp(1,2)-2)/2;
% flymax=max(data(:,3:end));
% plotaxis=max(flymax);
% plotaxis=plotaxis+1;

% for n=1:numFlies
%     figure;
%     plot(data(:,2*n+1),data(:,2*n+2),'LineWidth',1,'Color',rgb);
%     axis([0 plotaxis 0 plotaxis]);
%     axis square
%     
% end

roi=max(max(data(:,3:end)))

for n=1:numFlies
    figure;
    plot(data(:,(2*n)+1),data(:,(2*n)+2),'LineWidth',1,'Color',rgb);
    axis([0 roi 0 roi]);
    axis square
end
    
end