Mathematica中文论坛-非官方

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 活动 交友 discuz
查看: 16532|回复: 0

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

[复制链接]

525

主题

594

帖子

2980

积分

金牌会员

Rank: 6Rank: 6

积分
2980
发表于 2019-2-28 14:41:25 | 显示全部楼层 |阅读模式


  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
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|Mathematica中文论坛-非官方 ( 辽ICP备16001491号-1

GMT+8, 2024-3-28 17:31 , Processed in 0.117452 second(s), 27 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表