I have a image generator script but there is an issue with the outputted image. When it creates the layout it includes parts of the map beyond the extent. And even when I go into arcpro manually and enter the extent in the map properties it still shows beyond the defined extent. I am wondering if that is just how arcpro works or is there a way to get around it. Bellow is the layout and you can see how on the top and bottom it it shows beyond what I have set, the extent is:
Top: 45.0000000°N
Left: 82.0000000°W
Right: 45.0000000°W
Bottom: 25.0000000°N
Solved! Go to Solution.
Hey @LandonGarrett ,I don't know how to do it in script, and not sure if you tried this but I think you should adjust the Map Frame to match the Extent Ratio if you haven’t already. So your extent
Width: 82 - 45 = 37 degrees
Height: 45 - 25 = 20 degrees
Aspect ratio ≈ 37/20 = 1.85
Match your map frame shape to that ratio:
For example: set width = 18.5 cm, height = 10 cm Or any proportionally scaled version of 1.85:1
To doo this in the layout view manually:
1. Select the map frame
2. In the Element pane, manually adjust the size
Hope that helps!
Hey @LandonGarrett ,I don't know how to do it in script, and not sure if you tried this but I think you should adjust the Map Frame to match the Extent Ratio if you haven’t already. So your extent
Width: 82 - 45 = 37 degrees
Height: 45 - 25 = 20 degrees
Aspect ratio ≈ 37/20 = 1.85
Match your map frame shape to that ratio:
For example: set width = 18.5 cm, height = 10 cm Or any proportionally scaled version of 1.85:1
To doo this in the layout view manually:
1. Select the map frame
2. In the Element pane, manually adjust the size
Hope that helps!