Azzera filtri
Azzera filtri

Xticklabel rotation in R2016

2 visualizzazioni (ultimi 30 giorni)
TESFALEM ALDADA
TESFALEM ALDADA il 24 Feb 2020
Commentato: TESFALEM ALDADA il 24 Feb 2020
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 Commenti
Alex Mcaulley
Alex Mcaulley il 24 Feb 2020
Modificato: Alex Mcaulley il 24 Feb 2020
Reading the documentation xtickangle function was introduced in R2016b. Try with
set(gca,'XTickLabelRotation',45)
TESFALEM ALDADA
TESFALEM ALDADA il 24 Feb 2020
Ya, perfect it works, Thank you a lot.

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su 2-D and 3-D Plots in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by