O'Reilly logo

ArcGIS Blueprints by Eric Pimpler

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating the Create Line Plot tool

The Create Line Plot tool will create a line plot that depicts the number of crimes over time. This tool will be added to the Crime Analysis toolbox created in the previous chapter. It will use a combination of ArcPy and Plotly to create the graph.

This tool will use an existing point feature class layer imported with the Import Records tool. It will aggregate the total number of crimes by the month and plot the results to a line plot graph. Input parameters will include the feature class and field to be charted, along with a chart title, location, and filename for the output chart:

  1. If required, open C:\ArcGIS_Blueprint_Python\ch5\SeattleCrimes.mxd in ArcMap.
  2. Locate the CrimeAnalysis.pyt toolbox that was created ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required