title: Plot line graph from histogram data in matplotlib
body: <p>I have a numpy array of ints representing time periods, which I'm currently plotting in a histogram to get a nice distribution graph, using the following code:</p>
  
  <pre><code>ax.hist(data,bins=100,range=(minimum,maximum),facecolor="r")
  </code></pre>
  
  <p>However I'm trying to modify this graph to represent the exact same data using a line instead of bars, so I can overlay more samples to the same plot and have them be clear (otherwise the bars overlap each other). What I've tried so far is to collate the data array into an array of tuples containing (time, count), and then plot it using</p>
  
  <pre><code>ax.plot(data[:,0],data[:,1],color="red",lw=2)
  </code></pre>
  
  <p>However that's not giving me anything close, as I can't accurately simulate the bins option of the histogram in my plot. Is there a better way to do this?</p>