How to hide the units label on an axis
6 次查看(过去 30 天)
显示 更早的评论
Hello,
I'm trying to hide the units label on an axis-name.
![](https://www.mathworks.com/matlabcentral/images/broken_image.png)
By units label, I mean the "(deg)" on this picture. I need a plot in a different language than English, so the units have a different name.
Ata
0 个评论
采纳的回答
Sean de Wolski
2013-5-20
编辑:Sean de Wolski
2013-5-20
How are you generating the figure?
Would the following take care of it?
ylabel('Phase')
More per clarification. There is probably an option for bodeplot to turn this off but here is a workaround that just removes it:
hFig = figure;
sys = rss(5);
h = bodeplot(sys);
labels = findall(hFig,'Type','Text');
label = labels(strncmp(get(labels,'String'),'Phase',5));
set(label,'String',regexprep(get(label,'String'),'(\(\w*))',''));
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Line Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!