Hi, I am trying to get the graph functions going, and thought I had installed all the right modules. Now I get the following error:
C:\wattcher>c:\python25\python wattcher.py
Traceback (most recent call last):
File "wattcher.py", line 76, in <module>
fig = plt.figure()
NameError: name 'plt' is not defined
I am a newbie to Python - any ideas?
P.S. Had no problems to this point - great project and working to a treat!
Phil
Trying to setup graphing - NameError: name 'plt' is not defi
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- philmonty
- Posts: 52
- Joined: Mon Jun 08, 2009 5:28 pm
- philmonty
- Posts: 52
- Joined: Mon Jun 08, 2009 5:28 pm
Re: Trying to setup graphing - NameError: name 'plt' is not defi
OK, I found the problem. Added this to the top of wattcher.py:
import matplotlib.pyplot as plt
Works fine now.
import matplotlib.pyplot as plt
Works fine now.
Please be positive and constructive with your questions and comments.