MATLAB: Does the cursor disappear on the figure when I use the GINPUT function on Mac OS in MATLAB 7.0.1 (R14SP1)

clickcursorginputmacMATLABmouseososxpointsselect

I am running the following code in MATLAB 7.0.1 (R14SP1) on Mac OS:
pcolor (64*rand(100))
ginput
Then, I try to select points from the figure by clicking on various points inside the figure window. Although the figure is drawn correctly, I can not see the mouse cursor over the figure.
If I click on various points in the figure (despite the invisible cursor), and then press "Enter", points get selected and the x-y pairs are returned to the MATLAB command window.

Best Answer

This bug has been fixed in Release 14 Service Pack 3 (R14SP3). For previous product releases, read below for any possible workarounds:
There is a bug in MATLAB 7.0.1 (R14SP1) on Macintosh platforms in the way the GINPUT function handles drawing the cursor on the figure.
As a workaround, adding a legend to the figure brings back the cursor (even if you later hide it). Therefore, modifying the code as follows resolves the issue:
pcolor (64*rand(100));
legend('location','westoutside')
legend('hide')
ginput