Why does the cursor disappear on my figure when I use the GINPUT function on Mac OS in MATLAB 7.0.1 (R14SP1)?

6 views (last 30 days)
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.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
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

More Answers (0)

Categories

Find more on Visual Exploration in Help Center and File Exchange

Products


Release

R14SP1

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!