I am using data driven pages and arcpy.Graph() object to automate production of synchronised map/long-section series similar to this:

enter image description here

I'd like to keep vertical scale for long-section part. In order to do so I have to insert a couple of dummy points at the end of profile, because I cannot access these graph's properties via arcpy:

enter image description here

Does anyone know how to change min/max values for axis using script?


Unfortunately, when generating a graph based on addSeriesLineHorizontal you don't get access to the min and max as you do with addSeriesBarMinMax for instance. arcpy.Graph() doesn't provide that fine-grained access to the graph properties.

You could either access ArcObjects from Python to complement your workflow, or turn to a more powerful matplotlib that is delivered with standard ArcGIS for Desktop installation.

  • Perfect, matplotlib will do exactly what I want – FelixIP Feb 19 '16 at 9:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.