Is there a way to handle the writing labels of axes coordinate (The writing is not in a straight line with respect to the axes. I would like to modify that.)?
1 次查看(过去 30 天)
显示 更早的评论
回答(1 个)
Chunru
2022-7-4
[X, Y, Z] = peaks(40);
figure
surf(X, Y, Z)
xlabel('This is XLabel');
ylabel('This is YLabel');
h =gca;
% use the following to change the xlabel and ylabel orientation
h.XAxis.Label.Rotation = 13;
h.YAxis.Label.Rotation = -28;
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Labels and Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!