title: Plot random walk in python
body: <p>I produce the y coordinates of a random walk using the following code.</p>
  
  <pre><code>from random import *
  n = 10
  length = 100*n
  
  def ncount(vector):
      return sum(vector)
  randBinList = lambda n: [randint(0,1) for b in xrange(1,n+1)]
  
  vector = randBinList(length)
  
  ycoords = [ncount(vector[i:i+n-1]) for i in xrange(length-n+1)]
  xcoords = range(length-n+1)
  </code></pre>
  
  <p>How can I plot this random walk in 2d?</p>