Is it possible to plot images without them disturbing other work

1 次查看(过去 30 天)
I am running a script which plots out images. I want to work on something else while this is taking place, however the images are produced every couple of minutes and interrupt my other work by always opening on top. This means that anything I'm typing is half in my document and half on the command line. Is there a way of having the images plot not on top? I know I could make my window I'm working on "always on top" but if I'm switching between screens this isn't ideal.

回答(1 个)

Sean de Wolski
Sean de Wolski 2014-4-3
编辑:Sean de Wolski 2014-4-3
Specify the axes to plot to using the imshow(I,'parent',ax) syntax:
hAx = axes;
T = timer('Period',5,...
'ExecutionMode','fixedRate',...
'BusyMode','drop',...
'TasksToExecute',10,...
'StartDelay',0,...
'TimerFcn',@(src,evt)imshow(rand(256),'parent',hAx),...
'StartFcn',[],...
'StopFcn',[],...
'ErrorFcn',[]);
start(T)

类别

Help CenterFile Exchange 中查找有关 Annotations 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by