Mathematica中文论坛-非官方

 找回密码
 立即注册

QQ登录

只需一步,快速开始

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

豆粑粑 matlab subplot的图,总的title

[复制链接]

525

主题

594

帖子

2980

积分

金牌会员

Rank: 6Rank: 6

积分
2980
发表于 2018-9-27 09:38:57 | 显示全部楼层 |阅读模式
每个子图都有自己的title. 然后,figure有一个总的title.在fileexchange里,有一个suptitle函数。好用。


fig_suptitle.png


  1. clear all
  2. clc

  3. x=[1:0.2:5];
  4. y=sin(x);

  5. subplot(1,2,1)
  6. peaks;
  7. title('I am title 1')

  8. subplot(1,2,2)
  9. plot(x,y,'linewidth',2)
  10. title('I am title 2')

  11. suptitle(' I am all title')
复制代码
函数在附件

suptitle.m.tar

4.5 KB, 下载次数: 0

回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-3-29 07:23 , Processed in 0.125348 second(s), 27 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

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