Rotation angle between 0 and 360.

Also add a test for this
Merge pull request #3677 from jenshnielsen/fix_text

TST : Rotation angle between 0 and 360.