I am having trouble automating a pan in my figure creation script. My script updates a layer's data source and then (WA_1) pans to its extent. The points will always be in a tight area in California, but it seems to pan back to the bay area.
Here is my code, I have tried using the geometric extent and the symbolized extent, both yield the same results.
fig1_main_df_frm =fig1.listElements("mapframe_element","Main_DF Map Frame")[0]
xtent = fig1_main_df_frm.getLayerExtent(WA_1, False, True)
fig1_main_df_frm.panToExtent(xtent)