clear,clc
x=0:0.01:2*pi;
y=sin(x);
subplot(2,2,1);
plot(x,y);
title('原图');
%-----------------
subplot(2,2,2);
plot(x,y,'y','linewidth',10);
title('线的宽度');
%-----------------
subplot(2,2,3);
t=1;
plot(t,'go','linewidth',30);
hold on,
t1=2;
plot(t1,'ro','linewidth',8);
title('点的大小');
%-----------------
subplot(2,2,4);
plot(x,y);hold on
max_where=find(y==max(y));
plot(x(max_where),max(y),'mo','linewidth',5);
title('原图加点的大小');
绘图中 点标注,大小,线宽的设置
最新推荐文章于 2024-01-18 00:26:19 发布