title: Error: module 'matplotlib' has no attribute 'plot'
body: <p>I am using python 3.6 and while running the below code i am getting as error which says<br>
  Traceback (most recent call last):
    File "C:/Users/Sagar/AppData/Local/Programs/Python/Python36-32/graphfile.py", line 10, in 
      plt.plot(x,y)
  AttributeError: module 'matplotlib' has no attribute 'plot'</p>
  
  <p>The code is </p>
  
  <pre><code>import matplotlib as plt
  x=[]
  y=[]
  readfile=open("graph.txt","r")
  data=readfile.read().split("\n")
  for i in data:
       val=i.split(",")
       x.append(int(val[0]))
       y.append(int(val[1]))
  plt.plot(x,y)
  plt.show()
  </code></pre>