title: Plot histogram using Python with different colors for positive and negative values
body: <p>I did the following plot using Python:</p>
  
  <pre><code>import matplotlib.pyplot as plt
  plt.hist([x*100 for x in relativeError], bins = 100)
  plt.xlabel("Relative Error [%]")
  plt.ylabel("#samples")
  plt.axvline(x=0, linestyle='--',linewidth=1, color='grey')
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/6AHtF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6AHtF.png" alt="enter image description here"></a></p>
  
  <p>But what I really want is to have different colors depending on whether the value is positive or negative.</p>