If I rotate a rectangle by 45°, does it stay rectangular or become something else? I mean do 90° angles stay 90°?
I am asking this question because I have some results where the rotated rectangle becomes not so rectangular ... I think I have a problem.
Problem: I think the problem comes from scaling.... I draw the resulting data after rotation in another image, and I have got the rectangle correctly rotated. Maybe it is because I used imagesc to draw the background or axis image in MATLAB...?

I found the solution.
Well, I used to draw the image using a different scaling between Y-axis and X-axis. The solution is to set
DataAspectRatioto[1 1 1]. In order to use I have usedaxis imagebut afterimagesc(image)!