I have problems using the matplotlib for python with ArcGIS 10.1
If I run the code below as a script tool in ArcMap. No pdf is generated and when I close ArcMap this error is shown.
If I run the code from IDLE a similar error is shown for C:\Python\ArcGIS10.1\pythonw.exe but the pdf is generated correct.
If I run the code in a cmd prompt no error code is shown and the pdf is generated correct.
Does anybody know how to make the script work as a script tool in ArcMap?
from matplotlib import pyplot fig = pyplot.figure(figsize=(8.27,11.69)) axis1 = fig.add_subplot(311) axis1.plot(range(10)) fig.savefig('multipleplots.pdf')