dus*_*ots 2 matlab graph matlab-figure
所以我有一个3x3的子图阵列.我知道如何在每一个上获得一个标题,我知道如何使用suptitle函数获得一个"超级标题",但我无法弄清楚如何让标题只显示在每个标题上柱.我也想对行做类似的事情.想想臀部,膝盖,脚踝的顶部,然后是左侧的角速度,扭矩和力量.思考?
您可以使用text标记列和行.
subplot(2,2,1)
title('a')
h1 = text(-0.25, 0.5,'row 1');
set(h1, 'rotation', 90)
text(0.35,1.2,'column 1');
subplot(2,2,2)
title('b')
text(0.35,1.2,'column 2');
subplot(2,2,3)
title('c')
h = text(-0.25, 0.5, 'row 2');
set(h, 'rotation', 90)
subplot(2,2,4)
title('d')
Run Code Online (Sandbox Code Playgroud)
必须根据图的x和y范围调整文本的位置.