How do I get rid of a blue rectangle that appears on top of playing image sequences?

2 views (last 30 days)
I am trying write code for a MATLAB class that can play image sequences. On one computer that I use, a blue transparent rectangle appears and covers the axes where I am displaying images. The rectangle appears only when I have moved the cursor over the axes object that is playing an image sequence. The rectangle cannot be seen if I do a print screen. I took the images below with my cellphone. The rectangle disappears when the image sequence stops playing, and when the figure is re-sized. The error does not occur if a single image is displayed over and over again. The following code reproduces the error. The figure will flash between different shades of gray, so do not run the code it if you have epilepsy. The blue rectangle does not appear right away and will not appear on all computers.
figure
for t = 1:1000
im = rand()*ones(1000);
imshow(im, 'parent', gca)
drawnow
end
On the computer where I have seen the problem occur, it has occurred both in MATLAB 2013b and in a deployed application generated with MATLAB 2014b. The computer is running Windows 7.
I have no idea what is causing the problem and would be thankful for fixes, workarounds, and general information about what the rectangle is.
Running example code without blue rectangle.
Running example code with blue rectangle.
Blue rectangle on top of an image in an image sequence.
Best regards, Klas

Answers (0)

Categories

Find more on Interactive Control and Callbacks in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!