在Matlab中从GUI轴移除缩放 [英] Remove zoom from GUI axes in Matlab
问题描述
我是MATLAB的新手,并且已经使用UIpanel和axes方法在GUI上添加了徽标.但是由于它是显示我的图像的轴,所以有一个我想删除但无法删除的Zoom(放大镜)光标.当我在Uipanel内创建轴时,没有得到通常自动生成的createfuncn和callback,所以我应该如何进行处理. 在此先感谢
I am new to MATLAB, and I have added a logo on the GUI using UIpanel and axes method. But since its an axes over which my image is getting displayed, there is the Zoom(magnifying glass) cursor which I would like to remove but I am unable to. When I created the axes inside the Uipanel, I did not get the createfuncn and callback which usually gets generated automatically, So how should I proceed with it. Thanks in Advance
推荐答案
您可以使用zoom off
或zoom(f, 'off')
关闭缩放,其中f
是GUI图形的句柄.
You can turn off zoom using zoom off
or zoom(f, 'off')
, where f
is a handle to your GUI's figure.
请注意,缩放是在图形级别(而不是单个轴)上打开或关闭的,因此不能直接在一组轴上启用缩放
Note that zoom is turned on or off at the level of a figure, not an individual axes, so you cannot straightforwardly have zoom on for one set of axes
这篇关于在Matlab中从GUI轴移除缩放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!