I use ArcGIS 10 and would like to run Matplotlib to create charts within a python script. Therefore I have installed - numpy-1.6.1rc1-win32-superpack-python2.6.exe - matplotlib-1.0.1.win32-py2.6.exe
Furthermore where do I have to look if the %PATH% variable has a C:\Python26\ArcGIS10.0 entry?
import numpy as np import matplotlib.pyplot as plt x = np.arange(0, 5, 0.1); y = np.sin(x) plt.plot(x, y) plt.show()
The Path looked like: C:\Python26\ArcGIS10.0\Lib\site-packages\PyQt4;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;
C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Python26\ArcGIS10.0;C:\Perl64\site\bin;C:\Perl64\bin;C:\Program Files (x86)\QuickTime\QTSystem;c:\HEGtools\HEG_Win\bin;C:\Program Files\AutoCAD Raster Design 2010\;C:\Program Files\MATLAB\R2011a\bin;C:\utils\trid;C:\FlexNet32
C:\Program Files (x86)\ArcGIS\Desktop10.0\bin;C:\Program Files (x86)\ArcGIS\Desktop10.0\arcpy;C:\Program Files (x86)\ArcGIS\Desktop10.0\ArcToolbox
import locale locale.setlocale(locale.LC_NUMERIC, 'C')
import matplotlib.pylab as pl
but if I install Python(x,y) don't I have to install it in a directory namend C:\Python26\ArcGIS10.0\as this is the default when ArcGIS installed python2.6?
On my 10.1 install, Spyder 2.2 installs without problems and is directly usable with arcpy without any path changes necessary.cheers,Shauin
C:\Python27\ArcGIS10.2
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.