%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%常用选项和小技巧%%%%%
%画等值线
[cc hh]=contour(peaks(30),'LINESPEC','b-')
clabel(cc,hh,'manual')
%写文本
text(5,10,'\bf math \sl math \it math \rm math \alpha','color',[0.1 0.1 0.9],'fontsize',24)
%设置线宽
set(gca,'linewidth',2)
%写标题并设置字体的大小
ti=title('Title of My Figure','color','blue')
set(ti,'fontsize',24)
drawnow
%输出文件
print -dpsc plotE.ps
print -append -dpsc plotE.ps
print -djpeg100 plotE.jpg
%给定图窗口标题
figure('Name','My Figure1')
%设置使用调色板
map=hsv(32);
colormap(map)
%设定等值线的范围
caxis([-6 6])
%设定colorbar的方向和位置
hc=colorbar('hori');
po=get(hc,'position');
%set(hc,'position',[po(1) po(2)+0.14 po(3) po(4)-0.01]);
%set(hc,'XLim',[0 300]);
%设置绘图的缺省值
set(0,'DefaultLineLineWidth',2)
set(0,'DefaultAxesFontSize',18)
set(0,'DefaultAxesLineWidth',2)
set(0,'DefaultAxesTickLength',[0.01 0.025])