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...
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...