我如何在Matlab中隐藏轴和刻度而不隐藏其他所有内容 [英] How do I hide axes and ticks in matlab without hiding everything else

查看:447
本文介绍了我如何在Matlab中隐藏轴和刻度而不隐藏其他所有内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Matlab UI中将图像绘制到轴上,但是我不希望轴和刻度线可见,如何防止这种情况发生,以及在哪里进行此调用?

I draw images to axes in my matlab UI, but I don't want the axes and ticks to be visible how do I prevent that, and also where do I make this call?

我这样做

imagesc(myImage,'parent',handles.axesInGuide);

推荐答案

axis off;

这是您要寻找的吗?

这绝对是此网站和matlab文档中的其他地方.尝试输入

This is definitely somewhere else on this website and in the matlab documentation. Try typing

help plot

或者使用有关绘图的文档!

Or using the documentation on plotting!

现在,您已经显示了自己在做什么. (您不需要这些句柄,我只是总是将它们写进去以使我的工作区变得混乱)

edit: Now that you have shown what you are doing. (You don't need the handles, I just always write them in to clutter my workspace)

myImage = yurbuds0x2Dironman; # don't ask
fH = figure;
iH = imagesc(myImage);
set(gca,'xtick',[],'ytick',[])

您能做到这一点吗?

这篇关于我如何在Matlab中隐藏轴和刻度而不隐藏其他所有内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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