I run
import matplotlib.pyplot as plt
plt.plot(range(0, 10, 1)) #or "plt.plot(range(10))"
plt.show()
and it does nothing (except saying "Process finished with exit code 0" ). I am using PyCharm, on Windows 7, I installed matplotlib via PyCharm's package manager. I installed python 2.7 and PyCharm today (I practiced it for a month at codecadamy.com but I wanted to get accustomed to real conditions), so I am noob, and it can happen that the problem is trivial.
I tried various codes at matplotlib.org with no results.
Process finished with exit code 0means that it executed without an error. It's strange that a pop-up window doesn't appear. Try saving the figure usingplt.savefigand checking if it did. Additionallyshowwas intended to be used as a script more than as an interactive plot. Are you running that as a script or from some IDE/IDLE/REPL (write a command press enter...)? Try usingplt.ion()and then repeating the commands to see if a plot appears. Disclaimer though, I don't use PyCharm.plt.ion(), nothing happens. I triedplt.savefig("image.png")it did not save it (i checked in the folder where the whole project is).import osat the top and thenprint(os.path.abspath(os.path.curdir)right before you do theplt.savefig. The path it prints out is the one where the image is saved. If that doesn't work the best I can do for you is direct you to PyCharm help forums