How can I change my bode plot font size from Matlab's command?

조회 수: 9 (최근 30일)
Husni Rois Ali
Husni Rois Ali 2017년 10월 24일
댓글: Birdman 2017년 10월 24일
Hi All
I think that it may be a simple question, but I am grateful if somebody can help me. I have a fig file of bode plot. It is from a 2 inputs and 2 outputs system. How can I change the font size of x label (frequency) and y label (magnitude & angle) from command line?
Thank you

채택된 답변

Birdman
Birdman 2017년 10월 24일
Write ('name of axis','FontSize',value of font size,'FontWeight', bold or normal)
Example:
xlabel('Frequency','FontSize',20,'FontWeight','bold')
  댓글 수: 2
Husni Rois Ali
Husni Rois Ali 2017년 10월 24일
It partially works. If I just generated the figure, the your solution works. But If I already save the fig file and then reopen it, I encounter with the following error
Undefined function 'hglabel' for input arguments of type 'double'.
Error in ctrluis.axesgroup/addbypass>localYlabel (line 58) hlabel = hglabel(this,'YLabel');
any idea why?
Birdman
Birdman 2017년 10월 24일
For already saved figures, do the following:
a=openfig(' _name of the figure_');
aChildren=a.Children;
Then, open the aChildren 2x1 Axes and you will find the FontSize properties. You can manually change them.

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

추가 답변 (0개)

카테고리

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

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by