Timeline for how to create graphs while running python with ArcGIS 10
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 1, 2014 at 17:50 | comment | added | Jay Laura |
instead of import pylab you can use import matplotlib.pyplot as plt . Then the calls will be plt.plot() , etc.
|
|
Jun 4, 2013 at 5:19 | comment | added | scw | Responding to an old question, but I can confirm ArcGIS 10.1 does include matplotlib, but not ArcGIS 10.0. | |
Jul 12, 2011 at 11:28 | comment | added | Werner | Jason, did I understand it right, that arcgis 10.1 comes along with matplotlib? | |
Jul 4, 2011 at 10:14 | comment | added | Werner | This would be great as the version 10.1 is not shipped out in Germany yet, so I have to find a solution before that. Thanks! Werner | |
Jul 3, 2011 at 22:36 | comment | added | Jason Scheirer | This is interesting because Matplotlib is being bundled with 10.1 and there wasn't much we needed to do to get it working -- I'll see what's up on a 10.0 system. | |
Jul 3, 2011 at 8:10 | comment | added | Werner | By the way if I let it run in iPython (same installation) it works perfect. If you have any suggestion how to get it run I will really appreciate this. Thanks! | |
Jul 3, 2011 at 8:10 | comment | added | Werner | Furthermore I tried it like you suggested by exporting the graph as a file. Therefore I tried this one: from pylab import * plot ( arange(0,10),[9,4,5,2,3,5,7,12,2,3],'.-',label='sample1' ) plot ( arange(0,10),[12,5,33,2,4,5,3,3,22,10],'o-',label='sample2' ) xlabel('x axis') ylabel('y axis') title('my sample graphs') legend(('sample1','sample2')) savefig("c:\sampleg.png",dpi=(640/8)) Anyway if I run it with ArcGIS I still get the message: <type 'exceptions.ImportError'>: No module named pylab Failed to execute (Script). | |
Jul 3, 2011 at 8:10 | comment | added | Werner | I know the possibilities of built in of Arcgis and even took into account the use of templates, but as the graph options are still a little weak (of course they got much better in the recent years) I was looking for alternatives. Matplotlib seemed to be the tool that would fit my needs. Unfortunatly I didnt get it run; see also my post at the ESRIForum: forums.arcgis.com/threads/… | |
Jul 3, 2011 at 0:05 | history | answered | Jason Scheirer | CC BY-SA 3.0 |