function InteThres(hObject, eventdata)

global var h

subplot(2,14,13:14)

maxPS = max(max(var.PointSum));
minPS = min(min(var.PointSum));
maxPS = maxPS + .05*(maxPS-minPS);
maxint = max(max(var.intensity));
minint = min(min(var.intensity));
maxint = maxint + .05*(maxint-minint);
for i=1:length(var.inte)
    intinte(i) = var.intensity(var.inte(i,1),var.inte(i,2));
    PSinte(i) = var.PointSum(var.inte(i,1),var.inte(i,2));
end

minint = 

plot(intinte,PSinte,'.')
hold on
plot([var.InteConvThres1 var.InteConvThres1 maxint maxint var.InteConvThres1], ...
    [maxPS var.IntePSThres2 var.IntePSThres2 maxPS maxPS], ...
    'r:', 'linewidth',1);

plot([var.InteConvThres2 var.InteConvThres2 maxint maxint var.InteConvThres2], ...
    [maxPS var.IntePSThres1 var.IntePSThres1 maxPS maxPS], ...
    'g-');
hold off
xlim([minint maxint])
ylim([minPS maxPS])


[x,y] = ginput(1);
var.InteConvThres1 = x;
var.IntePSThres2 = y;

show_interactions;

end

