简体   繁体   中英

Matlab: ylabel along y-axis

I'm generating figures and I can't find the way to change the ylabel allignment so that it is along y-axis.

plot(tvals(:,1:dim), Values(:,1:dim))
title(Title)
xlabel(Xlabel)
ylabel(Ylabel')

在此处输入图片说明

Just do not transpose the Ylabel :

ylabel(Ylabel)

Compare output of the two lines

disp(Ylabel)
disp(Ylabel')

to see the difference

我认为您可能想旋转 ylabel:

ylabel('something','rotation',90)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM