Change look of margin plot
Mostrar comentarios más antiguos
I am using the margin function in matlab to plot the frequency response of a transfer funtion.
I have changed i names on the axes and i have tried to change the font size of the numbers on the axis.
I works with some of the numbers but not all. Is there a solution to this problem.
I want all numbers on the axes to be of size 14.
hFig = figure;
margin(G_p);
ax = gca;
ax.FontSize = 14;
fontname(gcf,"Times")
title("","FontSize",35,"FontName","Times")
labels = findall(hFig,'Type','Text');
set(labels(2),'String','Frequency [rad/s]',"FontSize",24,"FontName","Times");
set(labels(6),'String','Phase [deg]',"FontSize",24,"FontName","Times");
set(labels(9),'String','Magnitude [dB]',"FontSize",24,"FontName","Times");
xlim([10^-1 10^4])
fontname(gcf,"Times")
grid

Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Plot Customization en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!