- 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);
复制代码
|