필터 지우기
필터 지우기

Xticklabel rotation in R2016

조회 수: 2 (최근 30일)
TESFALEM ALDADA
TESFALEM ALDADA 2020년 2월 24일
댓글: TESFALEM ALDADA 2020년 2월 24일
Hello Dears,
I'm using a Matlab version R2016. and i wanted to rotate the xticklabels by 45 degree. The function workes in some new version of Matlab but not for me.
The example code is attached below. Any one with some trick to do this please have a look at.
boxplot(randn(5,5),1)
set(gca,'xticklabels',{'label_1','label_2','label_3','label_4','label_5'})
xtickangle(45)
cheers
  댓글 수: 2
Alex Mcaulley
Alex Mcaulley 2020년 2월 24일
편집: Alex Mcaulley 2020년 2월 24일
Reading the documentation xtickangle function was introduced in R2016b. Try with
set(gca,'XTickLabelRotation',45)
TESFALEM ALDADA
TESFALEM ALDADA 2020년 2월 24일
Ya, perfect it works, Thank you a lot.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by