meatball1982 发表于 2019-2-28 14:41:25

豆粑粑 matlab 两个子图之间画图 plot cross multi plot



clear all
clc
clf


x=linspace(-pi,4*pi,60);
y1=sin(x);
y2=cos(x);

x_p =;
y_p =[-1 -1 10 10 -1];


sbp_width=0.8;
sbp_heig=0.85;

out_pos = [
    0.1000    0.5375    0.8000    0.4250
    0.1000    0.0375    0.8000    0.4250];


h=figure(1);
set(h, 'Position', );

ax1=axes('position',out_pos(1,:));
plot(x,y1,'b-','linewidth',2)

ax2=axes('position',out_pos(2,:));
plot(x,y2,'g-','linewidth',2)

ax3=axes('position',);
h=patch(x_p,y_p,'y','edgecolor','none');
axis([ -pi 4*pi -1 3])
alpha(h,0.2)
hidden off
axis off

h=gcf;
fi_na='./fig_patch_corss_subplot';
% fun_work_li_035_myfig_out(h,fi_na,3);

页: [1]
查看完整版本: 豆粑粑 matlab 两个子图之间画图 plot cross multi plot