O'Reilly logo

Programming ArcGIS 10.1 with Python Cookbook by Eric Pimpler

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Updating layout element properties

Each layout element has a set of properties that you can update programmatically. For example, LegendElement includes properties that allow you to change the position of the legend on the page, update the legend title, and access the legend items.

Getting ready

There are many different types of layout elements including graphics, legends, text, maps, and pictures. Each of these elements is represented by a class in the arcpy.mapping package. These classes provide various properties that you can use to programmatically alter the element.

The DataFrame class provides access to data frame properties in the map document file. This object can work with both map units and page layout units, depending upon the property ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required