Mathematica中文论坛-非官方

标题: 豆粑粑 matlab 两个子图之间画图 plot cross multi plot [打印本页]

作者: meatball1982    时间: 2019-2-28 14:41
标题: 豆粑粑 matlab 两个子图之间画图 plot cross multi plot


  1. clear all
  2. clc
  3. clf


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

  7. x_p =[2 6 6 2 2];
  8. y_p =[-1 -1 10 10 -1];


  9. sbp_width=0.8;
  10. sbp_heig=0.85;

  11. out_pos = [
  12.     0.1000    0.5375    0.8000    0.4250
  13.     0.1000    0.0375    0.8000    0.4250];


  14. h=figure(1);
  15. set(h, 'Position', [100, 100, 500, 600]);
  16.   
  17. ax1=axes('position',out_pos(1,:));
  18. plot(x,y1,'b-','linewidth',2)

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

  21. ax3=axes('position',[0.1 0.0375 0.8 0.5375+0.425-0.0375]);
  22. h=patch(x_p,y_p,'y','edgecolor','none');
  23. axis([ -pi 4*pi -1 3])
  24. alpha(h,0.2)
  25. hidden off
  26. axis off

  27. h=gcf;
  28. fi_na='./fig_patch_corss_subplot';
  29. % fun_work_li_035_myfig_out(h,fi_na,3);
复制代码


fig_patch_corss_subplot.png (102.67 KB, 下载次数: 1819)

fig_patch_corss_subplot.png





欢迎光临 Mathematica中文论坛-非官方 (http://ilovemathematica.com/) Powered by Discuz! X3.2