title: How to do a bar plot data continuously in Matplotlib (in sequence)?
body: <p>Ok, the problem is quite simple, I guess. What I'm trying to do is a bar plot where the data is plotted in sequence, ignoring if the current value is smaller than the previous one. For example, the following:</p>
  <pre><code>import matplotlib.pyplot as plt
  
  x = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
  y = [10, 20, 30, 40, 50, 60, 70, 80, 90, 100]
  
  for index in range(len(x)): 
      plt.bar(x[index], y[index])
  </code></pre>
  <p>returns me this plot:</p>
  <p><a href="https://i.stack.imgur.com/F1sE6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/F1sE6.png" alt="enter image description here" /></a></p>
  <p>But if I add a new value to x and y (the new x value being smaller than the previous value), like:</p>
  <pre><code>import matplotlib.pyplot as plt
  
  x = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 2]
  y = [10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 200]
  
  for index in range(len(x)): 
      plt.bar(x[index], y[index])
  </code></pre>
  <p>the plot goes like this:</p>
  <p><a href="https://i.stack.imgur.com/ymOCV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ymOCV.png" alt="enter image description here" /></a></p>
  <p>So, <em>finally</em>, how can I plot this new 2 value after 10 instead of going back right to the value previously plotted?</p>