答案 0 :(得分:3)
您可以创建ylabel
对象,然后手动调整其属性:'Position'
和'Rotation'
:
plot(1:.1:10, (1:.1:10).^2); % example plot
t = title('Title');
y = ylabel('ylabel');
vf = 1.125; % vertical factor. Adjust manually
dy = .55; % horizontal offset. Adjust manually
tpos = get(t, 'Position');
theight = tpos(2);
ypos = get(y, 'Position');
set(y, 'Position', [ypos(1)+dy tpos(2)*1.02 ypos(3)], 'Rotation', 0)
这给出了下图: