Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have about 300 maps that contain a text element that needs to be rotated. I am pretty new to python but I have heard how great it is. This seemed like the perfect task for python but I have had no luck finding any examples on how to do this. The text is "Figure 1-1" and it just needs to be rotated 90 degrees and moved to a set location in the corner. If rotating is not an option I thought I could just manually rotate the text and save it as a graphic and then write a script that would insert the graphic in the desired location. This also doesnt seem possible.

Any help would be much appreciated.

share|improve this question
Welcome to stackexchange! Could you let us know what mapping software you are using? – Jay Guarneri Apr 3 '13 at 15:37
I am using ArcGIS 10.1 – user16784 Apr 3 '13 at 16:18

I haven't played with text elements much yet, but you need to use the arcpy.mapping module to manipulate TextElement objects. You can change the position by adjusting the text element's elementPositionX and elementPositionY properties. As of now, it looks like there's no way to programatically rotate the layout elements. There's an open ArcGIS Idea for this, so you should put your vote in!

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.