I'm trying to create elevation graphs from a set of line features and raster elevation file, while the Stack Profile tool from ArcMap can do that, I need to modify the min/max values of the y-axis to make them uniform. I know I can manually change the values but I need to be able to automate the process of changing those values.
I have looked all over to find if there's way to do that, and the closest answer I got was the
addSeriesBarMinMax function, which does not work for my graph. This is a test run of the code:
import arcpy from arcpy import env env.workspace="D:" graph="test1.grf" output_graph="test.grf" graph=arcpy.Graph() graph.addSeriesBarMinMax(graph, 400, 510) arcpy.SaveGraph_management(graph,output_graph)
And I get this error:
arcpy.SaveGraph_management(graph,output_graph) File "C:\Program Files (x86)\ArcGIS\Desktop10.2\arcpy\arcpy\management.py", line 5473, in SaveGraph raise e RuntimeError: Object: Error in executing tool
Is there any way for me to modify the min/max y-values from ArcPy?