I create a set of axes in the shape and assign a callback to my property 'ButtonDownFcn'as follows:
HRaxes = axes('Parent', Figure, 'Position', [.05 .60 .9 .35],...
'XLimMode', 'manual', 'ButtonDownFcn', @HR_ButtonDown);
If the callback function is defined as such:
function HR_ButtonDown(hObject, eventData)
%
end
The callback works fine until I draw something on the axes like this:
plot(HRaxes, data.HR_X, data.HR_Y, 'b');
After that, the callback no longer starts when I click on the axis. What is going wrong and how can I fix it?
source
share