Mathematica中文论坛-非官方

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 活动 交友 discuz
查看: 16660|回复: 0
打印 上一主题 下一主题

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

[复制链接]

532

主题

602

帖子

3029

积分

论坛元老

Rank: 8Rank: 8

积分
3029
跳转到指定楼层
楼主
发表于 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 (102.67 KB, 下载次数: 1762)

fig_patch_corss_subplot.png
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-25 17:54 , Processed in 0.121884 second(s), 28 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

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