title: Barplot with log y-axis program syntax with matplotlib pyplot
body: <p>I realize that this question has been asked before(<a href="https://stackoverflow.com/questions/14047068/python-pyplot-bar-plot-bars-disapear-when-using-log-scale">Python Pyplot Bar Plot bars disappear when using log scale</a>), but the answer given did not work for me. I set my pyplot.bar(x_values, y_values, etc, log = True) but got an error that says:</p>
  
  <pre><code>"TypeError: unsupported operand type(s) for +: 'NoneType' and 'int'"
  </code></pre>
  
  <p>I have been searching in vain for an actual example of pyplot code that uses a bar plot with the y-axis set to log but haven't found it. What am I doing wrong?</p>
  
  <p>here is the code:</p>
  
  <pre><code>import matplotlib.pyplot as pyplot
  ax = fig.add_subplot(111)
  fig = pyplot.figure()
  x_axis = [0, 1, 2, 3, 4, 5]
  y_axis = [334, 350, 385, 40000.0, 167000.0, 1590000.0]
  ax.bar(x_axis, y_axis, log = 1)
  pyplot.show()
  </code></pre>
  
  <p>I get an error even when I removre pyplot.show. Thanks in advance for the help</p>