• 카테고리

    질문 & 답변
  • 세부 분야

    딥러닝 · 머신러닝

  • 해결 여부

    미해결

plt.plot 함수

16.05.08 01:53 작성 조회수 257

0

plt.plot 함수는 어떻게 쓰신거죠? Traceback (most recent call last): File "/home/joe/PycharmProjects/Tensorflowpractice/LinearCost1.py", line 22, in plt.plot(W_val, cost_val, 'ro') NameError: name 'plt' is not defined 이렇게 없다는데요

답변 2

·

답변을 작성해보세요.

0

김민성님의 프로필

김민성

2016.05.17

터미널 창에서 입력하시면 됩니다. 그리고 본문에 나와있네요 터미널(혹은 콘솔에서) sudo apt-get install python-matplotlib Mac os x 를 기준으로  sudo pip install matplotlib

0

조영재님의 프로필

조영재

질문자

2016.05.08

import matplotlib.pyplot as plt Try to type sudo apt-get install python-matplotlib in a terminal. In your message you typed it in ipython console. This is a bash command, not a python one. You need to quit ipython before. For that use Ctrl + D