Hello,
I'm pretty new to ArcPy and am having with what is probably a fairly simple task. I'm trying to change the fitting strategy of a legend in a layout called "Test_Layout", and then change the font size of all elements in the legend to 8. Here is my code so far:
aprx = arcpy.mp.ArcGISProject("CURRENT")
lyt = aprx.listLayouts("Test_Layout")[0]
leg = lyt.listElements("LEGEND_ELEMENT")[0]
leg.fittingStrategy = "AdjustFrame"
for elm in leg.items:
fontSize = 8
Is anyone able to tell me what I'm doing wrong?
Thanks in advance!