論文中經(jīng)常要在圖中再加插圖雕拼,這樣做的好處是:
- 文意表達更文緊湊、密切粘招;
- 可以節(jié)省論文的版圖啥寇,尤其是在Letters類文章中。
如下筆者展示了如何利用Matlab來做插圖洒扎。具體而言辑甜,即在y = sin(x)這幅圖中插入y = x 和y = x2 這兩個小圖,分別位于原圖的右上方和左下方袍冷。
clear all;
x = 0 : 0.01 : 2 * pi;
y1 = sin(x); y2 = x; y3 = x.^2;
g1 = plot(x, y1);hold on;
text('interpreter','latex','position',[3,0],'string','$f(x)=sin(x)$')
axes('position', [0.65 0.65 0.2 0.2])
plot(x, y2)
text('interpreter','latex','position',[2,3],'string','$f(x)=x$')
axes('position', [0.2 0.2 0.25 0.25])
plot(x, y3)
text('interpreter','latex','position',[2,6],'string','$f(x)=x^2$')
insert_plot.png