Matlab画图设置线宽和字号(Matlab picture setting line width and font size)
Matlab画图设置线宽和字号(Matlab picture setting line width and font size)
Matlab draw line width and size
Since so many people have come here to read, I will do more notes, for your reference.
The following code does not require special settings, but only after the plot statement is inserted.
%plot your figure before
%%%%%%%%%%%%%%%%%%%%%
Set (GCF,'Units','centimeters','Position', [10 107, 5]);% settings; picture size 7cm * 5cm
%get hanlde to current axis returns the handle to the current coordinate axis of the current graph,
% (the, first, element, is, the, distance, of, the, axes, relative, to, the, left,, edge, of, the, figure,...
%the, second, the, vertical, distance, the, bottom, and, then, from, the, width, and, height;
Set (GCA,'Position', [.13,.80,.74],.17);% sets the proportion of the XY axis in the picture
Set (get (GCA,'XLabel'),'FontSize', 8); on% chart, the text is 8 point or small 5
Set (get (GCA,'YLabel'),'FontSize', 8);
Set (get (GCA,'TITLE'),'FontSize', 8);
Set (GCA,'fontsize', 8);
Set (GCA,'linewidth', 0.5);% coordinate lines are 0.5 pounds thick
Set (GCA,'box','off');%Controls, the, box, around, the, plotting, area
Set (get (GCA,'Children'),'linewidth', 1.5);% set line, line width 1.5 lbs.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
The following method of setting up other parameters is actually using the function handle to manipulate the graphics. Interested in your own research:
Here, are, some, tips, on, making, figures, with, Matlab, for, theses, papers/abstracts, and, reports., Basically, you, need, to, change/disable, some, of,, Matlab's, default, settings,, to, get, better, the, you, print, want.
Figures and axes/subplots are defined in Matlab by a set of "handles" that, for example, define the size of a figure or the position of an axes system within a figure. To understand how this work you must know that Matlab is written object oriented. The way I understand is that there is a hierachie in the different objects. For example, your screen has the highest priorit