Full control of plot axes and labels?
Show older comments
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;
plot(x,y)
ax = gca;
ax.FontSize = 11;
xlabel('X [s]');
ylabel('Y [m]');
xlim([0 5]);ylim([0 40])
3 Comments
Walter Roberson
on 31 May 2016
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.
Ole
on 1 Jun 2016
Walter Roberson
on 1 Jun 2016
.fig files do not have menus. figures often have menus, but not .fig files.
Answers (0)
Categories
Find more on Graphics Object Properties in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!