data cursor mode black figure
7 views (last 30 days)
Show older comments
I was using the following code on Matlab 2011a in a 32-bit platform with Windows Vista, and everything was fine:
if true
%code
fig=figure;
pcolor(I1defocus), shading interp
dcm_obj = datacursormode( fig);
set(dcm_obj,'DisplayStyle','datatip',...
'SnapToDataVertex','off','Enable','on')
disp('Click to select the center, then press Enter.')
pause % Wait while the user does this.
img_info = getCursorInfo(dcm_obj);
centerI1defocus(1)=floor(img_info.Position(2));
centerI1defocus(2)=floor(img_info.Position(1));
end
I changed the platform, Windows 10 on a 64 bit architecture (same Matlab version), and when I select a point with cursor, the image becomes black. At the same way if I try to rotate the figure with the options of the window created by matlab, it becomes black too. Can anybody help me?
0 Comments
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!