MATLAB Answers


Full control of plot axes and labels?

さんによって質問されました 2016 年 5 月 31 日
最新アクティビティ Walter Roberson
さんによって コメントされました 2016 年 6 月 1 日
I am having troubles with plot of figure. Seems it has alot of data point and respond quite slowly when I tried to change the fig file.
So I would like to set all figure properties on fig print.
My questions are how to control the axis font size, color, and size and color of the labels. For some reason the fig file color is some grey. I would like it black. Thank you.
x=linspace(1,10,20); y=x.^2;
ax = gca;
ax.FontSize = 11;
xlabel('X [s]');
ylabel('Y [m]');
xlim([0 5]);ylim([0 40])

  3 件のコメント

Walter Roberson
2016 年 5 月 31 日
Why are you trying to change .fig files?
.fig files do not have color: .fig files are really just .mat files that save data objects. The data objects need to be drawn on the screen or converted into images or printed to have color.
2016 年 6 月 1 日
Changing fig file from its menus is easier. But is too slow. So I want to genrate the fig file and save as image.
Walter Roberson
2016 年 6 月 1 日
.fig files do not have menus. figures often have menus, but not .fig files.

サインイン to comment.



0 件の回答

Translated by