matlab画图

来源:互联网 发布:丹尼尔雷德克里夫 知乎 编辑:程序博客网 时间:2024/04/28 02:04

 

set(gca,'XLim',[xmin xmax]) 调整x轴的范围

 

axis([xmin,xmax,ymin,ymax])函数来调整图轴的范围

 

set(gca,'XTick',[20 31.5 63 125 250 500 1000 2000 4000 8000 16000]) 精确设置x轴的刻度

 

set(gca,'XMinorTick','off');

set(gca,'XGrid','on');

set(gca,'XMinorGrid','off');

 

set(gca, 'color',  [0.8 0.8 0.8])    %设置背景颜色

plot( ...   'color', [0.4 0.5 0.6])     %设置线的color

set(gca, 'Fontsize', 10)    %设置title,legend,xlabel的字体

plot(...., 'LineWidth', 2)   % 设置线的粗细