0

Is there a way to adjust the axis limits in the built-in graph tool in ArcMap?

I have looked all over and cannot find it. It would be easier to just adjust the axes than to save a new shapefile with the extra points removed.

3
  • 1
    gis.stackexchange.com/questions/181390/…
    – FelixIP
    Commented Feb 19, 2021 at 4:39
  • thanks @FelixIP. Is there a way to create and embed a plot from matplotlib while working in the Python window in ArcMap? I have searched but didn't find anything on getting started with matplotlib in ArcMap
    – a11
    Commented Feb 19, 2021 at 22:42
  • Where do you want it? There's picture element in layout view...
    – FelixIP
    Commented Feb 20, 2021 at 1:40

1 Answer 1

0

I hope example below will kick-start you using matplotlib module with ArcGIS.

Table:

enter image description here

Script:

import arcpy
import matplotlib.pyplot as plt
inFc = r'C:\SCRATCH\SCRATCH.gdb\points'
tbl=arcpy.da.TableToNumPyArray(inFc, ("D_ALONG","Z"))
line,=plt.plot(tbl["D_ALONG"],tbl["Z"])
plt.title("Rangitoto Caldera")
plt.savefig('F:/AERIALS/PNGs/Example.png')

Output:

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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