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

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

 Respuesta aceptada

Write ('name of axis','FontSize',value of font size,'FontWeight', bold or normal)
Example:
xlabel('Frequency','FontSize',20,'FontWeight','bold')

2 comentarios

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?
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.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Graphics Object Properties en Centro de ayuda y File Exchange.

Productos

Etiquetas

Preguntada:

el 24 de Oct. de 2017

Comentada:

el 24 de Oct. de 2017

Community Treasure Hunt

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

Start Hunting!

Translated by