Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/wcf/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Plot 如何使绘图在MatlabGUI的轴上不可见_Plot_Matlab Guide_Axes - Fatal编程技术网

Plot 如何使绘图在MatlabGUI的轴上不可见

Plot 如何使绘图在MatlabGUI的轴上不可见,plot,matlab-guide,axes,Plot,Matlab Guide,Axes,我设计了MatlabGUI,其中有两个轴用于显示图像。现在,将图像作为背景,我在轴上绘制一些点(或绘图)作为前景。我想通过代码动态地使绘图不可见(在图像上显示为前景)。请帮帮我。我尝试使用set(gcf、'visible'、'off'),但它使整个GUI不可见。此外,我还尝试了设置(gca、‘可见’、‘关闭’),但不起作用。试试这个: p = plot(something); 然后可以使用 set(p,'visible','off'); 或者使用 set(p,'visible','on'

我设计了MatlabGUI,其中有两个轴用于显示图像。现在,将图像作为背景,我在轴上绘制一些点(或绘图)作为前景。我想通过代码动态地使绘图不可见(在图像上显示为前景)。请帮帮我。我尝试使用set(gcf、'visible'、'off'),但它使整个GUI不可见。此外,我还尝试了设置(gca、‘可见’、‘关闭’),但不起作用。

试试这个:

p = plot(something);
然后可以使用

set(p,'visible','off');
或者使用

  set(p,'visible','on');  
顺便说一下,绘图可以在相同的轴上完成