Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

Setting DataFrame.scale messes up my scale bars

$
0
0
When I use the regular pan/zoom tools or Data Driven Pages, ArcGIS correctly updates my scale bar according to the way I set it.

But when I alter a map layout's extent using the DataFrame.scale property, perhaps preceded by DataFrame.zoomToSelectedFeatures(), my scale bar gets messed up, see the image below. The top image shows the scale bar correctly resized; the bottom image shows what happens when I alter zoom in Python via the DataFrame class.

Attachment 20062

So what gives? Is this a bug? Is there some kind of refresh procedure that I can use to ensure that my scale bar is resized properly when using Python to batch export maps? FYI, my scale bar is set to 'Adjust Division Value' when resizing...
Attached Thumbnails
Click image for larger version

Name:	scalebar.jpg‎
Views:	N/A
Size:	16.8 KB
ID:	20062  

Viewing all articles
Browse latest Browse all 2485

Trending Articles