一个ylabel用于所有子图matlab

Mus*_*shi 5 matlab label subplot

如何在matlab中为多个子图设置一个"大,单"的ylabel?

我试图搜索但只找到一个类似的问题'matplotlib'而不是matlab.

提前致谢.

m_p*_*wer 4

这里有一些可以帮助你的东西:

MyBox = uicontrol('style','text');
set(MyBox,'String','Your YLabel')
set(MyBox,'Position',[0,0,10,10])
Run Code Online (Sandbox Code Playgroud)

您可以添加其他属性来旋转它并更改背景颜色。

编辑:

好吧,我没有找到任何使用 uicontrol 进行旋转的方法。另一种选择是使用text命令:

%your subplot
h = axes('Position',[0 0 1 1],'Visible','off'); %add an axes on the left side of your subplots
set(gcf,'CurrentAxes',h)
text(.1,.45,'Your YLABEL',...
'VerticalAlignment','bottom',...
'HorizontalAlignment','left', 'Rotation', 90, 'FontSize',18)
Run Code Online (Sandbox Code Playgroud)