Rotate the colormap image: Axis labels missing after rotation!
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
aneps
am 14 Dez. 2014
Kommentiert: aneps
am 15 Dez. 2014
I have a colormap image as shown here.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/146459/image.jpeg)
I want to rotate it through 45 degrees. I used imrotate to perform this as follows:
ImageRot=imrotate(Image,45);
imshow(ImageRot,'colormap',jet)
set(gca,'Clim',[0,25])
After doing this, I am getting the image rotated but unfortunately without axis, labels and title... im just getting the image (following image).
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/146460/image.jpeg)
How can I insert the axis labels and all or how to perform rotation keeping the axis labels and title?
2 Kommentare
Image Analyst
am 14 Dez. 2014
What is the point of the set() function? What if you just don't call that? At what point does the colorbar vanish?
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Display Image finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!