필터 지우기
필터 지우기

How to hide the units label on an axis

조회 수: 6 (최근 30일)
ata
ata 2013년 5월 20일
Hello,
I'm trying to hide the units label on an axis-name.
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

채택된 답변

Sean de Wolski
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*))',''));
  댓글 수: 3
Sean de Wolski
Sean de Wolski 2013년 5월 20일
see More
ata
ata 2013년 5월 20일
This way, it works fine. Thank you!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Line Plots에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by