Matlab:重叠子图标题 [英] Matlab: Overlapping subplot titles

查看:462
本文介绍了Matlab:重叠子图标题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用subplot,其中包含三个不同的图.每个地块都有自己的标签和标题.
问题是保存图时必须最大化图.否则,文本将彼此重叠.
当我最大化它时,即使我使用ESP格式或任何矢量格式,子图的标签文本在图像中也将看起来很少模糊.
我该如何解决这个问题?

I'm using subplot which contains three different plots. Each plot has its own labels and title.
The problem is that I have to maximize the plot when I save it. Otherwise, the texts will overlap each other.
When I maximize it, the subplot's label text will appear little blurry in the image, even if I use ESP format or any vector format.
How can I resolve this issue?

推荐答案

对于标题重叠问题,可以使用字符串的单元格数组作为title()的输入参数来生成多行标题文本.

For the title overlap issues, you can produce multiple lines of title text use a cell array of strings as the input parameter of title():

title_text = {'first line', 'second line', 'third line'};
title(title_text);

它也适用于标签文本.

这篇关于Matlab:重叠子图标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆