Tuesday, January 19, 2010

Graphing in python

Ever want to graph your results and you don't want to use the Google API or some other API like that, well along comes MatPlotLib.

Before I continue, make sure you have the ESRI media just in case your geo-statistics fails because numpy 1.3.0 and above are not supported officially be ESRI.

You'll need 3 things:
Python - v2.5.4
Matplotlib -v0.99.1
numpy - v1.3.0

You can install each version over top the older versions, so there is no need to uninstall anything.

Once setup, you can now create graphs in python to compliment your geoprocessing data.

There are great examples of how to use Matplotlib on the website. For example, you can do histograms, box plots, etc.. Also, you can include graph items like legends.


Happy Coding
~A