在Matlab中从GUI轴移除缩放 [英] Remove zoom from GUI axes in Matlab

查看:157
本文介绍了在Matlab中从GUI轴移除缩放的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是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 offzoom(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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆