<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Matplotlib for Python scripting in ArcGIS 10 does not work in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/matplotlib-for-python-scripting-in-arcgis-10-does/m-p/605068#M47282</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Werner,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; The Path looked like:&amp;nbsp; &lt;BR /&gt;C:\Python26\ArcGIS10.0\Lib\site-packages\PyQt4;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;&amp;nbsp; &lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With that PATH value you do not have an explicit path to the Python program and libraries.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;IMHO to run Python from the command line and for proper functioning of many programs, an entry in the PATH allows you explicit control of the Python executable called. If you did have multiple versions of Python installed, i.e. Python(X, Y) as mentioned, you would control the active version by its position in the PATH.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is a sample System Variable Path from my Windows 7 64-bit test workstation--graphic device drivers, operating system, &lt;/SPAN&gt;&lt;SPAN style="color:&amp;quot;Blue&amp;quot;;"&gt;then Python&lt;/SPAN&gt;&lt;SPAN&gt; with other applications further down the search path.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;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&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With C:\Python26\ArcGIS10.0 included, this allows one to issue a python or pythonw command or import an associated library under that path from any shell enabled application on the system.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also have a PYTHONPATH System Variable that as an explicit location takes precedence over standard libarary locations or .PTH files--in this instance I've duplicated the ArcGIS Desktop10.pth values.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
C:\Program Files (x86)\ArcGIS\Desktop10.0\bin;C:\Program Files (x86)\ArcGIS\Desktop10.0\arcpy;C:\Program Files (x86)\ArcGIS\Desktop10.0\ArcToolbox&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem with the tkinter.TclError -- bad screen distance "640.0" may be related to your numerical locale setting. In German Windows the "," decimal mark causes some issues. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Found this as a work around, maybe it will help with matplotlib in general with ArcGIS.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import locale
locale.setlocale(locale.LC_NUMERIC, 'C')&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]&lt;/SPAN&gt;&lt;A href="http://trac-hacks.org/ticket/1872" rel="nofollow noopener noreferrer" target="_blank"&gt;http://trac-hacks.org/ticket/1872&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.mail-archive.com/matplotlib-users@lists.sourceforge.net/msg21373.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.mail-archive.com/matplotlib-users@lists.sourceforge.net/msg21373.html&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://old.nabble.com/%22bad-screen-distance%22-tkinter-error-with-German-locale-td31964358.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://old.nabble.com/%22bad-screen-distance%22-tkinter-error-with-German-locale-td31964358.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Stuart&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 01:56:52 GMT</pubDate>
    <dc:creator>V_StuartFoote</dc:creator>
    <dc:date>2021-12-12T01:56:52Z</dc:date>
    <item>
      <title>Matplotlib for Python scripting in ArcGIS 10 does not work</title>
      <link>https://community.esri.com/t5/python-questions/matplotlib-for-python-scripting-in-arcgis-10-does/m-p/605061#M47275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I use ArcGIS 10 and would like to run Matplotlib to create charts within a python script. Therefore I have installed &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- numpy-1.6.1rc1-win32-superpack-python2.6.exe &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- matplotlib-1.0.1.win32-py2.6.exe &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;as noted here: &lt;/SPAN&gt;&lt;A href="http://matplotlib.sourceforge.net/users/installing.html"&gt;http://matplotlib.sourceforge.net/users/installing.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I test a script to check the installation like: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import numpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.AddMessage("NUMPY Version " + numpy.__version__)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import matplotlib&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.AddMessage("MATPLOTLIB Version " + matplotlib.__version__)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I get the following error: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Running script Script...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NUMPY Version 1.6.1rc1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;type 'exceptions.AttributeError'&amp;gt;: 'module' object has no attribute '__version__'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute (Script).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also the command &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- import pylab as pl &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;leads to the error &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;type 'exceptions.ImportError'&amp;gt;: No module named pylab&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute (Script).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So even matplotlib is installed properly in the directory "site-packages" (see screenshot of directory structure attached) it does not work in ArcGIS. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;By the way if I let it run in iPython (same installation) it works perfect.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What still needs to be done to get matplotlib work in ArcGIS 10?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Werner&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2011 19:50:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/matplotlib-for-python-scripting-in-arcgis-10-does/m-p/605061#M47275</guid>
      <dc:creator>wernerrolf</dc:creator>
      <dc:date>2011-06-29T19:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: Matplotlib for Python scripting in ArcGIS 10 does not work</title>
      <link>https://community.esri.com/t5/python-questions/matplotlib-for-python-scripting-in-arcgis-10-does/m-p/605062#M47276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I use ArcGIS 10 and would like to run Matplotlib to create charts within a python script. Therefore I have installed &lt;BR /&gt;- numpy-1.6.1rc1-win32-superpack-python2.6.exe &lt;BR /&gt;- matplotlib-1.0.1.win32-py2.6.exe &lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Werner,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Looking at your install you didn't remove numpy-1.3, supposedly there are &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/2506-arcpy-install-fears"&gt;ArcPy DCOM elements hard coded against numpy-1.3&lt;/A&gt;&lt;SPAN&gt;, but having both releases present is probably not good.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, looking at the matplotlib site, only numpy-1.1 is required--did you need numpy-1.6 for some reason? Perhaps the numpy-1.3 will suffice for your plotting work and simplify your install.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The matplotlib &lt;/SPAN&gt;&lt;A href="http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.0.1/matplotlib-1.0.1.win32-py2.6.exe/download"&gt;Windows 32-bit installer at SourceForge&lt;/A&gt;&lt;SPAN&gt; seems to correctly install with the ESRI instance of Python 2.6.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That should get the matplotlib functional for you leaving your ESRI ArcGIS10.0 Python instance intact. I was able to do just this now including the &lt;/SPAN&gt;&lt;A href="https://launchpad.net/pyreadline/+download"&gt;PyReadline&lt;/A&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;A href="http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.0.1/matplotlib-1.0.1.win32-py2.6.exe/download"&gt;IPython&lt;/A&gt;&lt;SPAN&gt; installers. All seem to work OK with just numpy-1.3.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If still having problems, you might want to look for any environment variables or .pth files that may need adjustment to the ESRI default Python installation at C:\Python26\ArcGIS10.0 that may be causing problems.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Alternatively, you may be able to load the &lt;/SPAN&gt;&lt;A href="http://ftp.ntua.gr/pub/devel/pythonxy/Python(x,y)-2.6.6.1.exe"&gt;Python 2.6 build of Python(X,Y)&lt;/A&gt;&lt;SPAN&gt;--uses numpy-1.6.0, and again there remains any dependencies of ArcPy on having a numpy-1.3 egg in place.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You would first need to uninstall the ESRI Python instance from &lt;/SPAN&gt;&lt;STRONG&gt;Uninstall or Change a Program&lt;/STRONG&gt;&lt;SPAN&gt;--saving a copy of the Desktop10.pth file from the site-packages directory to reuse in the new installation.&amp;nbsp; You'll then have to test what breaks in ArcPy without numpy-1.3.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good luck.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Stuart&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Jul 2011 15:37:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/matplotlib-for-python-scripting-in-arcgis-10-does/m-p/605062#M47276</guid>
      <dc:creator>V_StuartFoote</dc:creator>
      <dc:date>2011-07-09T15:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: Matplotlib for Python scripting in ArcGIS 10 does not work</title>
      <link>https://community.esri.com/t5/python-questions/matplotlib-for-python-scripting-in-arcgis-10-does/m-p/605063#M47277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks first! &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I wasn't aware that there were two versions of numpy running and deinstalled 1.6 again. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I now went completely through your 1st proposal: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So now I now have numpy 1.3 and the matplotlib Windows 32-bit installer that you recommended on my machine. Unfortunatly it still does not work. What confuses me is that numpy seem to work, it's more that matplotlib seem to have the problem i.e. pyplot that comes along with it. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I always get the warning: No module named pyplot&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I also checked the pth file and have three variables in there: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Programme\ArcGIS\Desktop10.0\bin&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Programme\ArcGIS\Desktop10.0\arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Programme\ArcGIS\Desktop10.0\ArcToolbox\Scripts&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do I need other in there? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At least so far this seem not to work for some reason. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Before I will try your second proposal I'm still looking for alternatives as I do have one of those campus licences that I'm only able to install at university and if I screw this up here I'll be in big mess as I cannot go there in next time and have to get my work done before that.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Jul 2011 20:04:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/matplotlib-for-python-scripting-in-arcgis-10-does/m-p/605063#M47277</guid>
      <dc:creator>wernerrolf</dc:creator>
      <dc:date>2011-07-09T20:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: Matplotlib for Python scripting in ArcGIS 10 does not work</title>
      <link>https://community.esri.com/t5/python-questions/matplotlib-for-python-scripting-in-arcgis-10-does/m-p/605064#M47278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Werner,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any chance you just need to issue the call to pyplot as matplotlib.pyplot?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Those entries in your Desktop10.pth file look OK. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your %PATH% variable should have a C:\Python26\ArcGIS10.0 entry, and python.exe and pythonw.exe should &lt;/SPAN&gt;&lt;STRONG&gt;only&lt;/STRONG&gt;&lt;SPAN&gt; be in that directory.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, have a look in the registry at this Key:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.6\PythonPath&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Note: would be SOFTWARE\Wow6432Node\Python on 64-bit OS.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The key's Default value should have a &lt;/SPAN&gt;&lt;STRONG&gt;lib-tk&lt;/STRONG&gt;&lt;SPAN&gt; value laid down by the matplotlib installer that matches ESRI's Python 2.6 instance. Something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]C:\Python26\ArcGIS10.0\Lib;C:\Python26\ArcGIS10.0\DLLs;C:\Python26\ArcGIS10.0\Lib\lib-tk&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If it was not laid down in the same path, you'll need to uninstall matplotlib, and numpy packages. Then reinstall numpy-1.3.0 and matplotlib-1.0.1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When the package installer GUIs run be sure to choose the C:\Python26\ArcGIS10.0 instance of Python.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Stuart&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Jul 2011 00:26:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/matplotlib-for-python-scripting-in-arcgis-10-does/m-p/605064#M47278</guid>
      <dc:creator>V_StuartFoote</dc:creator>
      <dc:date>2011-07-10T00:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: Matplotlib for Python scripting in ArcGIS 10 does not work</title>
      <link>https://community.esri.com/t5/python-questions/matplotlib-for-python-scripting-in-arcgis-10-does/m-p/605065#M47279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The registry key is fine. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry but I didn't get what you meant if I need to issue the call to pyplot as matplotlib.pyplot. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Furthermore where do I have to look if the %PATH% variable has a C:\Python26\ArcGIS10.0 entry? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What may also confuse is the fact, that if I run IPython any scripts with arcpy and matplotlib work totally fine, but not if I run the same script in ArcGIS or IDLE that comes along with its installation. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your patience!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Jul 2011 09:29:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/matplotlib-for-python-scripting-in-arcgis-10-does/m-p/605065#M47279</guid>
      <dc:creator>wernerrolf</dc:creator>
      <dc:date>2011-07-10T09:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: Matplotlib for Python scripting in ArcGIS 10 does not work</title>
      <link>https://community.esri.com/t5/python-questions/matplotlib-for-python-scripting-in-arcgis-10-does/m-p/605066#M47280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Werner,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; Furthermore where do I have to look if the %PATH% variable has a C:\Python26\ArcGIS10.0 entry?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From a command prompt issue:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]&lt;/SPAN&gt;&lt;SPAN style="color:&amp;quot;Blue&amp;quot;;"&gt;echo %PATH%&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;[/INDENT]From a regedit session browse to: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]&lt;/SPAN&gt;&lt;SPAN style="color:&amp;quot;Blue&amp;quot;;"&gt;HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment&lt;/SPAN&gt;&lt;SPAN&gt;[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Or probably best (because you can see both System and Current User values) select:[INDENT]&lt;/SPAN&gt;&lt;SPAN style="color:&amp;quot;Blue&amp;quot;;"&gt;Start --&amp;gt; Computer --&amp;gt; Properties (System Properties) --&amp;gt; Advanced System Settings (Advanced tab) --&amp;gt; Environment Variables&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The Current User will have a Path -- just be sure if it has any Python related paths they do not conflict with the &lt;/SPAN&gt;&lt;SPAN style="color:&amp;quot;Green&amp;quot;;"&gt;C:\Python26\ArcGIS10.0&lt;/SPAN&gt;&lt;SPAN&gt; location. And in the System Variables block that in the PATH listing, that &lt;/SPAN&gt;&lt;SPAN style="color:&amp;quot;Green&amp;quot;;"&gt;C:\Python26\ArcGIS10.0&lt;/SPAN&gt;&lt;SPAN&gt; is the only listed Python--or at the least it must be the first listed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is a sample pytplot script that should run displaying a Tcl/Tk plot from IDLE, PyWin32, IPython. It should run even in the ArcMap Python window (either enter each line or load it as a script).&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;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()&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you can get it to run in IDLE and the ArcMap Python window you've fixed any path or configuration issues.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Syntax of the packages in your code is another issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Stuart&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:56:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/matplotlib-for-python-scripting-in-arcgis-10-does/m-p/605066#M47280</guid>
      <dc:creator>V_StuartFoote</dc:creator>
      <dc:date>2021-12-12T01:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: Matplotlib for Python scripting in ArcGIS 10 does not work</title>
      <link>https://community.esri.com/t5/python-questions/matplotlib-for-python-scripting-in-arcgis-10-does/m-p/605067#M47281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have checked the path but need not to change anything. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The Path looked like: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Python26\ArcGIS10.0\Lib\site-packages\PyQt4;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your script example works at least in IDLE - for what kind of ever reason as others do not. But if I tart it within ArcMap I get the error: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;class '_tkinter.TclError'&amp;gt;: bad screen distance "640.0" &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Im wondering to give it up or suggest this questions to ask at the next ESRI User Conference.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Furthermore there seem to be a need of some serious improvements on the python interface of ArcGIS, as other matplotlib scripts that are working with python regularly don't work if lauchend in ArcMap. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hopefully in next versions this will work more consistent. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyway thank you very much for your help!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Jul 2011 18:35:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/matplotlib-for-python-scripting-in-arcgis-10-does/m-p/605067#M47281</guid>
      <dc:creator>wernerrolf</dc:creator>
      <dc:date>2011-07-10T18:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: Matplotlib for Python scripting in ArcGIS 10 does not work</title>
      <link>https://community.esri.com/t5/python-questions/matplotlib-for-python-scripting-in-arcgis-10-does/m-p/605068#M47282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Werner,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; The Path looked like:&amp;nbsp; &lt;BR /&gt;C:\Python26\ArcGIS10.0\Lib\site-packages\PyQt4;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;&amp;nbsp; &lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With that PATH value you do not have an explicit path to the Python program and libraries.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;IMHO to run Python from the command line and for proper functioning of many programs, an entry in the PATH allows you explicit control of the Python executable called. If you did have multiple versions of Python installed, i.e. Python(X, Y) as mentioned, you would control the active version by its position in the PATH.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is a sample System Variable Path from my Windows 7 64-bit test workstation--graphic device drivers, operating system, &lt;/SPAN&gt;&lt;SPAN style="color:&amp;quot;Blue&amp;quot;;"&gt;then Python&lt;/SPAN&gt;&lt;SPAN&gt; with other applications further down the search path.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;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&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With C:\Python26\ArcGIS10.0 included, this allows one to issue a python or pythonw command or import an associated library under that path from any shell enabled application on the system.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also have a PYTHONPATH System Variable that as an explicit location takes precedence over standard libarary locations or .PTH files--in this instance I've duplicated the ArcGIS Desktop10.pth values.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
C:\Program Files (x86)\ArcGIS\Desktop10.0\bin;C:\Program Files (x86)\ArcGIS\Desktop10.0\arcpy;C:\Program Files (x86)\ArcGIS\Desktop10.0\ArcToolbox&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem with the tkinter.TclError -- bad screen distance "640.0" may be related to your numerical locale setting. In German Windows the "," decimal mark causes some issues. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Found this as a work around, maybe it will help with matplotlib in general with ArcGIS.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import locale
locale.setlocale(locale.LC_NUMERIC, 'C')&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]&lt;/SPAN&gt;&lt;A href="http://trac-hacks.org/ticket/1872" rel="nofollow noopener noreferrer" target="_blank"&gt;http://trac-hacks.org/ticket/1872&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.mail-archive.com/matplotlib-users@lists.sourceforge.net/msg21373.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.mail-archive.com/matplotlib-users@lists.sourceforge.net/msg21373.html&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://old.nabble.com/%22bad-screen-distance%22-tkinter-error-with-German-locale-td31964358.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://old.nabble.com/%22bad-screen-distance%22-tkinter-error-with-German-locale-td31964358.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Stuart&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:56:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/matplotlib-for-python-scripting-in-arcgis-10-does/m-p/605068#M47282</guid>
      <dc:creator>V_StuartFoote</dc:creator>
      <dc:date>2021-12-12T01:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: Matplotlib for Python scripting in ArcGIS 10 does not work</title>
      <link>https://community.esri.com/t5/python-questions/matplotlib-for-python-scripting-in-arcgis-10-does/m-p/605069#M47283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks once again, the numerical locale setting code works. And in deed its once agtain one step further. I also changed the path now, so that it now looks like: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Python26\ArcGIS10.0;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Nevertheless the error &lt;/SPAN&gt;&lt;STRONG&gt;No module named pylab&lt;/STRONG&gt;&lt;SPAN&gt; still remains.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2011 14:26:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/matplotlib-for-python-scripting-in-arcgis-10-does/m-p/605069#M47283</guid>
      <dc:creator>wernerrolf</dc:creator>
      <dc:date>2011-07-11T14:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: Matplotlib for Python scripting in ArcGIS 10 does not work</title>
      <link>https://community.esri.com/t5/python-questions/matplotlib-for-python-scripting-in-arcgis-10-does/m-p/605070#M47284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well it's progress &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I believe that pylab is a module of the matplotlib site-package. Don't you first need to import matplotlib to be able to call a pylab function?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or you might try the pylab calls explicitly, but that may leave you without some of the other matplotlib functions:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;import matplotlib.pylab as pl&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Stuart&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2011 15:14:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/matplotlib-for-python-scripting-in-arcgis-10-does/m-p/605070#M47284</guid>
      <dc:creator>V_StuartFoote</dc:creator>
      <dc:date>2011-07-11T15:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: Matplotlib for Python scripting in ArcGIS 10 does not work</title>
      <link>https://community.esri.com/t5/python-questions/matplotlib-for-python-scripting-in-arcgis-10-does/m-p/605071#M47285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No sure if this will help at this point, but here are instructions that I put together to install python(x,y). Stuart's little plotting script works fine for me in IDLE, Spyder, and Arc's Python window.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Install ArcGis10 without python or uninstall python&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Download Python(x,y) from &lt;/SPAN&gt;&lt;A href="http://www.pythonxy.com/"&gt;http://www.pythonxy.com/&lt;/A&gt;&lt;SPAN&gt; and install, making sure you select "custom directories" so that python is installed in C:\Python26. If installing on a 64 bit machine, do not include GDAL 1.6 �?? it won�??t work. Instead, go to &lt;/SPAN&gt;&lt;A href="http://www.lfd.uci.edu/~gohlke/pythonlibs/"&gt;http://www.lfd.uci.edu/~gohlke/pythonlibs/&lt;/A&gt;&lt;SPAN&gt; and install&amp;nbsp; GDAL-1.8.0.win32-py2.6.exe.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3) Create a file called Desktop10.pth, which&amp;nbsp; should contain these lines:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Program Files (x86)\ArcGIS\Desktop10.0\bin&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Program Files (x86)\ArcGIS\Desktop10.0\arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Program Files (x86)\ArcGIS\Desktop10.0\ArcToolbox\Script&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4) Place the file in the python installation directory: �??C:\Python26�??&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5) Open IDLE and try �??import arcpy�??&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2011 15:48:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/matplotlib-for-python-scripting-in-arcgis-10-does/m-p/605071#M47285</guid>
      <dc:creator>ChrisBater</dc:creator>
      <dc:date>2011-07-11T15:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: Matplotlib for Python scripting in ArcGIS 10 does not work</title>
      <link>https://community.esri.com/t5/python-questions/matplotlib-for-python-scripting-in-arcgis-10-does/m-p/605072#M47286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Chris,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes that is the direction for using an alternate Python instance. The problem remains ArcGIS 10 ArcPy compiled PYC (DCOM against ArcObjects) dependencies on a hard coded numpy-1.3 instance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;While it was his original question, we'll cook Werner's noodle if we drag him down that path.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For now I'd like to see him get a functional matplotlib site-package install that works with both an ArcGIS 10 Python window--in process--, as well as in a Python IDE or command line for doing the plotting and MATLAB like processing of his geospatial data.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Python(X, Y) install is an open question over on the &lt;/SPAN&gt;&lt;A href="http://gis.stackexchange.com/questions/8324/installing-arcgis-10-with-pythonx-y"&gt;GIS Stack Exchange&lt;/A&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;A href="http://gis.stackexchange.com/questions/11996/install-other-python-distributions-on-top-of-arcgis-installation-esp-python"&gt;this one&lt;/A&gt;&lt;SPAN&gt;.&amp;nbsp; But your note on GDAL 1.6 vs 1.8 version and past comments on numpy-1.3 dependencies of the ArcPy site-package mean there is a lot to be worked out. What GDAL release does ESRI use in ArcPy?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Stuart&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2011 16:17:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/matplotlib-for-python-scripting-in-arcgis-10-does/m-p/605072#M47286</guid>
      <dc:creator>V_StuartFoote</dc:creator>
      <dc:date>2011-07-11T16:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: Matplotlib for Python scripting in ArcGIS 10 does not work</title>
      <link>https://community.esri.com/t5/python-questions/matplotlib-for-python-scripting-in-arcgis-10-does/m-p/605073#M47287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Fair enough. Sorry if I'm sowing mass confusion. Interestingly, I'm running numpy version 1.5.1 and have had no issues. (Yet.)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2011 17:51:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/matplotlib-for-python-scripting-in-arcgis-10-does/m-p/605073#M47287</guid>
      <dc:creator>ChrisBater</dc:creator>
      <dc:date>2011-07-11T17:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: Matplotlib for Python scripting in ArcGIS 10 does not work</title>
      <link>https://community.esri.com/t5/python-questions/matplotlib-for-python-scripting-in-arcgis-10-does/m-p/605074#M47288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;As my noodles are not cooked yet I was as well considering to try it with Python(x,y) - so it's not really confusing but an option. But somewhere else I read the same about that ArcGIS gets problem with numby newer than 1.3. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe it's a try worth...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2011 08:59:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/matplotlib-for-python-scripting-in-arcgis-10-does/m-p/605074#M47288</guid>
      <dc:creator>wernerrolf</dc:creator>
      <dc:date>2011-07-12T08:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: Matplotlib for Python scripting in ArcGIS 10 does not work</title>
      <link>https://community.esri.com/t5/python-questions/matplotlib-for-python-scripting-in-arcgis-10-does/m-p/605075#M47289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Chris, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but if I install Python(x,y) don't I have to install it in a directory namend C:\Python26\ArcGIS10.0\&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;as this is the default when ArcGIS installed python2.6? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2011 09:15:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/matplotlib-for-python-scripting-in-arcgis-10-does/m-p/605075#M47289</guid>
      <dc:creator>wernerrolf</dc:creator>
      <dc:date>2011-07-12T09:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: Matplotlib for Python scripting in ArcGIS 10 does not work</title>
      <link>https://community.esri.com/t5/python-questions/matplotlib-for-python-scripting-in-arcgis-10-does/m-p/605076#M47290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;but if I install Python(x,y) don't I have to install it in a directory namend C:\Python26\ArcGIS10.0\&lt;BR /&gt;as this is the default when ArcGIS installed python2.6? &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Werner,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Don't install python in&amp;nbsp; C:\Python26\ArcGIS10.0\. The safest way to start off is probably to completely uninstall arc, then reinstall it without python. Then install python(x,y) in �??C:\Python26�?? and deal with the gdal issue, if necessary. From there, I'll direct you to steps 3 and 4 in my 'Python (x,y) installation instructions:'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3) Create a file called Desktop10.pth, which should contain these lines:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Program Files (x86)\ArcGIS\Desktop10.0\bin&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Program Files (x86)\ArcGIS\Desktop10.0\arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Program Files (x86)\ArcGIS\Desktop10.0\ArcToolbox\Script&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4) Place the file in the python installation directory: �??C:\Python26�??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Desktop10.pth file will point to the required directories. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If there are issues with using a version of numpy other than 1.3, I haven't encountered them, and frankly, the benefits of having libraries like matplotlib and scipy work properly far outweigh the risks when arc is already such an unreliable bit of software.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Obviously I can't provide a warranty with this, but it works for me and I haven't looked back. Esri really needs to reevaluate it's python distribution so that it can play nice with the wider community, otherwise, what's the point?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I apologize for the rant. Good luck!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2011 17:05:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/matplotlib-for-python-scripting-in-arcgis-10-does/m-p/605076#M47290</guid>
      <dc:creator>ChrisBater</dc:creator>
      <dc:date>2011-07-12T17:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: Matplotlib for Python scripting in ArcGIS 10 does not work</title>
      <link>https://community.esri.com/t5/python-questions/matplotlib-for-python-scripting-in-arcgis-10-does/m-p/605077#M47291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Chris Bater, any ideas on how this would work with Arc10.1? Will it only work with Python 2.6.x installed?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I added Desktop10.1.pth to my C:\Python27 directory &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Program Files (x86)\ArcGIS\Desktop10.1\bin&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Program Files (x86)\ArcGIS\Desktop10.1\arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Program Files (x86)\ArcGIS\Desktop10.1\ArcToolbox\Script&amp;nbsp;&amp;nbsp; #note that this directory doesn't exist &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Still no luck. I'd like to develop in Spyder by using arcpy and numpy.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2013 19:27:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/matplotlib-for-python-scripting-in-arcgis-10-does/m-p/605077#M47291</guid>
      <dc:creator>CHRISCLASEN</dc:creator>
      <dc:date>2013-06-13T19:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: Matplotlib for Python scripting in ArcGIS 10 does not work</title>
      <link>https://community.esri.com/t5/python-questions/matplotlib-for-python-scripting-in-arcgis-10-does/m-p/605078#M47292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;On my 10.1 install, Spyder 2.2 installs without problems and is directly usable with arcpy without any path changes necessary.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Shauin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2013 15:48:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/matplotlib-for-python-scripting-in-arcgis-10-does/m-p/605078#M47292</guid>
      <dc:creator>ShaunWalbridge</dc:creator>
      <dc:date>2013-06-25T15:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: Matplotlib for Python scripting in ArcGIS 10 does not work</title>
      <link>https://community.esri.com/t5/python-questions/matplotlib-for-python-scripting-in-arcgis-10-does/m-p/605079#M47293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;On my 10.1 install, Spyder 2.2 installs without problems and is directly usable with arcpy without any path changes necessary.&lt;BR /&gt;&lt;BR /&gt;cheers,&lt;BR /&gt;Shauin&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How did you install Spyder? I get an error stating that Spyder can't find an installation of python whenever I use the .exe.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2014 02:29:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/matplotlib-for-python-scripting-in-arcgis-10-does/m-p/605079#M47293</guid>
      <dc:creator>SamuelMcDeid</dc:creator>
      <dc:date>2014-01-17T02:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: Matplotlib for Python scripting in ArcGIS 10 does not work</title>
      <link>https://community.esri.com/t5/python-questions/matplotlib-for-python-scripting-in-arcgis-10-does/m-p/605080#M47294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Samuel, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The &lt;/SPAN&gt;&lt;SPAN style="font-family:Courier New;"&gt;spyder.bat&lt;/SPAN&gt;&lt;SPAN&gt; file just includes a reference to "python", without the full path to the executable. You can fix it by either adding the path to your Python installation to your system PATH variable (&lt;/SPAN&gt;&lt;A href="https://pythongisandstuff.wordpress.com/2013/07/10/locating-python-adding-to-path-and-accessing-arcpy/"&gt;see this post&lt;/A&gt;&lt;SPAN&gt;), or by changing the spyder.bat file to include the full location of python.exe, something like &lt;/SPAN&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;C:\Python27\ArcGIS10.2&lt;/PRE&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Feb 2014 19:23:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/matplotlib-for-python-scripting-in-arcgis-10-does/m-p/605080#M47294</guid>
      <dc:creator>ShaunWalbridge</dc:creator>
      <dc:date>2014-02-03T19:23:59Z</dc:date>
    </item>
  </channel>
</rss>

