function CreateFigureOneColumn
% 设置合适在Word中未分栏时插入图片的格式
% 该函数在Figure图被绘制后使用,绘制Figure图时不要改变线的宽度和标签字体
% 的大小。该函数会统一设置现款为2,字体大小为8.
% 在调用函数之后,需要调用绘图窗口中 Edit->Copy figure 命令,然后粘贴到
% word
set(gcf,'unit','centimeters',...
'position',[10 5 14 5]);% 设置Figure在屏幕上的位置以及宽度和高
% 度,以屏幕的左下角为基准。
set(gcf,'color','none');% 设置图像的背景色为透明
set(gcf,'InvertHardcopy','off');% 硬拷贝转换,‘off’打印输出的结果和
% 屏幕上显示的(大小)相同
set(gcf,'paperpositionmode','auto');% In‘manual’mode, MATLAB honors
% the value specified by the
% PaperPosition property. In‘auto’
% mode, MATLAB prints the figure
% the same size as it appears on
% the computer screen,centered on
% the page.
set(gca,'Position',[.06 .18 .9