How to rotate the content in the figure?