I'm caught in a strange situation. I've written a python script to plot a cross-section from a DEM along a line. Everything works fine except when I Show the plot, ArcGIS hangs and I have to force it to close with Task Manager. I am working with Windows 7 and ArcGIS 10.3. Following is my code snippet:
import arcpyfrom arcpy import envimport matplotlib.pyplot as plt.........plt.plot(x,y) plt.xlabel('Distance (m)') plt.ylabel('Elevation (m)') plt.title('X-section along the line') plt.grid(True) plt.savefig('Xsection.png') plt.show() plt.close()I will greatly appreciate any hints/ideas on how can I overcome this Problem. Thank you.
أكثر...
import arcpyfrom arcpy import envimport matplotlib.pyplot as plt.........plt.plot(x,y) plt.xlabel('Distance (m)') plt.ylabel('Elevation (m)') plt.title('X-section along the line') plt.grid(True) plt.savefig('Xsection.png') plt.show() plt.close()I will greatly appreciate any hints/ideas on how can I overcome this Problem. Thank you.
أكثر...