gpt4 book ai didi

Matlab 查询 : How to align 'title' at the botton of the figure when plotting points

转载 作者:太空宇宙 更新时间:2023-11-03 19:54:07 27 4
gpt4 key购买 nike

我的问题说明了一切。我在 Matlab 上绘制点。但是当我设置“标题”值时,它默认在图像顶部显示标题名称。如何将标题设置在图片底部?

提前致谢。

最佳答案

如果您不使用 xlabel,您可以将其用作快速破解。

如果您确实使用了 xlabel,请通过传递一个元胞数组再添加一两行:

figure;
xlabel({'X-label', '', 'Figure title'});

正如 Amro 在他的评论中提到的,您可以使用 uicontrol 在任何地方制作文本:

x=linspace(0,10*pi);
plot3(x,x.*cos(x),x.*sin(x)); % Plot a 3d spiral
uicontrol('Style','text','Position', [200 20 200 20],'String','My Title')

定位不是自动的,因此当您调整图形大小时,标题会从中心移开。

关于Matlab 查询 : How to align 'title' at the botton of the figure when plotting points,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8101398/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com