You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: plotSegments.m
    path of file: ./repos/PsPM/src/ext/pupil-size/code/helperFunctions
    
    the code of the file until where you have to start completion: function plotSegments(hAxs,segmentData)
% plotSegments Visualizes segments as patches.
%
%   This is an internal helper script, and is not intended to be 
    
function clickCB(src,evt,segmentData)
% Callback for showing segment info.
%
%--------------------------------------------------------------------------

% Hittest:
if ~verLessThan('matlab','8.5') && evt.Button ~=1
    return
end
if verLessThan('matlab','8.5')
    IntersectionPoint = get(get(src,'Parent'),'CurrentPoint');
    IntersectionPoint = IntersectionPoint(1,1:2);
else
    IntersectionPoint = evt.IntersectionPoint;
end