title: plotting multiple values of x for one value of y in python
body: <p>I have a problem when trying to plot using plt.plot. My particular problem is that I have two lists. For every element of the first list I want to plot the corresponding 4 elements of the second list. This is my code :</p>
  
  <pre><code>import numpy as np
  import pylab as pl
  
  lista=[1,2,3,4,5,6]
  listb=[1,2,0,4,1,5,0,2,1,2,1,4,1,2,0,4]
  
  i=0
  j=0
  l=0
  
  while i&lt;=5:
    while j&lt;=3:
      X=listb[j+l*4]
      Y=lista[i]
      pl.plot(Y,X,'ro')
      j=j+1
    i=i+1
    l=l+1
  
  
  pl.xlim(0,7)
  pl.ylim(-1,5)
  pl.show()
  </code></pre>
  
  <p>What I want is to create a graph that will have for every Y(element of lista) four values(elements of listb). But what I get is a graph with only the first element of lista</p>