OCTAVE画图
作者:互联网
1、线条加粗
x=0:0.1:8*pi;
y=sin(x);
plot(x,y,'LineWidth',5)
2、折点变成曲线
X=80:0.001:140;
>> Y=spline(x,y,X);
>> plot(X,Y)
3、设置坐标值字体大小
set(gca,'fontsize',20)
4、同时画曲线和散点图,并对图进行美化
>>plot(x, y1, 'ok-', 'linewidth', 1.1, 'markerfacecolor', [36, 169, 225]/255)
>> set(gca, 'linewidth', 1.1, 'fontsize', 16, 'fontname', 'times')
>> xlabel('Input voltage(kv)')
>> ylabel('I/I0')
>> title('d=30mm')
>> print('i_i0_d.png','-dpng')
标签:gca,plot,set,1.1,画图,fontsize,OCTAVE,linewidth 来源: https://www.cnblogs.com/hehesunshine/p/11720592.html