I have an axes that contains several child objects. I have created a "ButtonDownFcn" callback for the axes. However, when I click on the child objects, the axes' "ButtonDownFcn" callback is not executed.
For example, I create an axis with a line using:
h = line;set(gca,'ButtonDownFcn','disp(''axis callback'')')
when I click on the axis, I see
axis callback
displayed in the command window. However, if I click on the line, nothing occurs.
Best Answer