matplotlib

Posted by sweston on 2013-07-21 21:04
Forums: PyPM (discontinued) | OS: Windows 8

I have used pypm to install "matplotlib". All ok.

import matplotlib.pyplot as plot

Traceback (most recent call last):
File "D:\python-examples\matplotlib.py", line 4, in
import matplotlib
File "D:\python-examples\matplotlib.py", line 5, in
import matplotlib.pyplot as plt
ImportError: No module named pyplot

Its a very simple script:

import matplotlib.pyplot as plt

plt.plot([1,2,3,4])

plt.show()

I have looked in %APPDATA%/Python and I have a matplotlib under Python27\site-packages:

C:\Users\sweston\AppData\Roaming\Python\Python27\site-packages\matplotlib

I look in here and pyplot exists. __init__.py exists.

V.strange as this all worked ok on another pc, although that was windows 7.