Matlab ezpolar中的抑制功能显示 [英] Suppress function display in matlab ezpolar

查看:108
本文介绍了Matlab ezpolar中的抑制功能显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用ezpolar在指南针图上绘制圆弧.超级容易,

I am using ezpolar to draw an arc on a compass plot. It's super easy,

ezpolar('1', [TH1, TH2])

在范围[TH1, TH2]上绘制半径为1的圆弧.但是,函数本身"r = 1"显示在图上,这是我所不希望的.我找不到和对此的引用被多余的参数或其他东西抑制.

to plot a circular arc with a radius 1 over the range [TH1, TH2]. However the function itself "r=1" gets displayed on the plot, which I do not want. I can't find and references to how this can be suppressed with an extra parameter or something.

我意识到我可以用其他方法绘制弧线,但这是一个很酷的功能,而且非常紧凑,因此我想在这里和将来使用它.

I realise I could plot the arc other ways, but this is a cool function and super-compact, so I'd like to use it here and in the future.

有人知道如何禁止在绘图上显示函数吗?

Anyone know how to suppress the displaying of the function on the plot?

预先感谢

推荐答案

整rick!

看起来ezpolar是发生许多事情但没有返回给用户的MATLAB图之一.但是我找到了使用findobj的方法.

It looks like ezpolar is one of those MATLAB plots where a lot of things happen but nothing gets returned to the user. However I found the way using findobj.

适应图,我意识到这是MATLAB放置在图中的'Text'对象,因此我们可以尝试使用

Fiddling with the plot I realized that it is a 'Text' object what MATLAB puts in the plot, so we can try to find it with

h = findobj(gca,'Type','Text')

,然后删除文本,例如:

and then delete the text, for example with:

h.String='';

多田!

这篇关于Matlab ezpolar中的抑制功能显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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