Change look of margin plot
28 vues (au cours des 30 derniers jours)
Tobias Dehn Nielsen le 21 Nov 2022
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;
ax = gca;
ax.FontSize = 14;
labels = findall(hFig,'Type','Text');
Jiri Hajek le 21 Nov 2022
Hi, this special plot apparently has a specific structure. I'd suggest to try and analyze the properties of your plot object. It seems probable that the gca object will have in its structure two children axes objects and you need to set their FontSize properties. I suggest to try to search for all objects in your figure that have a FontSize property.
Hmatch = findobj(hFig,'-property',FontSize)
And then set the property for all found objects.