python error name not defined - Stack Overflow
stackoverflow.com › questions › 41614261Jan 12, 2017 · The image location and the image name is only thing I have changed. I am getting the following error:-. Traceback (most recent call last): File "test.py", line 11, in <module> plt.imshow (im, cmap=cm.gray) NameError: name 'cm' is not defined. python. Share. Follow this question to receive notifications. asked Jan 12, 2017 at 10:56.