title: Passing numpy array to function giving type error
body: <p>Not sure why I keep getting an error when I try to plot a bar chart.</p>
  
  <pre><code> def plotBar(x,y):
      plt.bar(x, y, width=1, align='center', color='plum', edgecolor='firebrick',linewidth=1)
      plt.show()
  </code></pre>
  
  <p>In main I am calling the function like this:</p>
  
  <pre><code>x1=np.arange(1,101)
  y1=np.arange(50,151)
  
  classname.plotBar(x1,y1)
  </code></pre>
  
  <p>However, I keep getting this error:</p>
  
  <p><code>TypeError: plotBar() takes 2 positional arguments but 3 were given</code></p>