View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
rotateXLabels

Join the 15-year community celebration.

Play games and win prizes!

» Learn more

4.66667
4.7 | 3 ratings Rate this file 34 Downloads (last 30 days) File Size: 4.8 KB File ID: #45172 Version: 1.0
image thumbnail

rotateXLabels

by

Kyle Andringa (view profile)

 

21 Jan 2014 (Updated )

Rotate the X Tick Label Text

| Watch this File

File Information
Description

This function rotates the orientation of the XTickLabel by specifying a rotation angle in degrees.

Acknowledgements

This file inspired X Yrotalabel Rotate X Axis And Y Axis Labels.

Required Products MATLAB
MATLAB release MATLAB 8.0 (R2012b)
MATLAB Search Path
/
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (4)
24 Feb 2016 Luis Faria  
07 Mar 2014 Haosense Xu

not bad.Thanks!

28 Jan 2014 Kenzo

Kenzo (view profile)

Hello Everybody!
I use matlab 8.0.0.783 (R2012b) and want to rotate value on x-axis, but I get the message below:
'Undefined function 'rotateXLabels' for input arguments of type 'double'.'
Here is my code:

lower = [0 50 300 500 1000 2000 3000 4000 5000 6000 7000 8000];
upper = [50 300 500 1000 2000 3000 4000 5000 6000 7000 8000 9000];

total = zeros(1,length(lower)); % number of BSs with this Power

Tx_power = Tx_Pow10;%(Tx_Pow10 > 19);

for i = 1:length(lower)
total(i) = length(find(Tx_power > lower(i) & Tx_power <= upper(i)));
end
figure(1);
bar(total);
set(gca,'xTickLabel',{'0-0.049','0.05-0.29','0.3-0.49','0.5-0.99','1-1.9','2-2.9','3-3.9','4-4.9','5-5.9','6-6.9','7-7.9','8-9'});
rotateXLabels(gca(),45);

the command doc rotateXLabels doesn't find anything about rotateXLabels.
I'm wondering if my matlab version old or what I'm doing wrong. Can u help me please?
I also tried xticklabel_rotate, rotateticklabel, but I get the same issue
Thanks

Comment only
22 Jan 2014 Rainer

Rainer (view profile)

 
Updates
01 Sep 2016 1.0

.

Contact us