Mathematica中文论坛-非官方
标题:
豆粑粑 matlab 两个子图之间画图 plot cross multi plot
[打印本页]
作者:
meatball1982
时间:
2019-2-28 14:41
标题:
豆粑粑 matlab 两个子图之间画图 plot cross multi plot
clear all
clc
clf
x=linspace(-pi,4*pi,60);
y1=sin(x);
y2=cos(x);
x_p =[2 6 6 2 2];
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', [100, 100, 500, 600]);
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',[0.1 0.0375 0.8 0.5375+0.425-0.0375]);
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);
复制代码
fig_patch_corss_subplot.png
(102.67 KB, 下载次数: 2269)
下载附件
2019-2-28 14:40 上传
欢迎光临 Mathematica中文论坛-非官方 (http://ilovemathematica.com/)
Powered by Discuz! X3.2