title: Plotting histogram of brownian motion?
body: <p>My task is to plot a histogram of the simulation of brownian motion. Thankfully, I've already made a program that simulates brownian motion, and plots it on a scatter plot as a function of time and distance. This is what my output looks like:</p>
  
  <p><img src="https://i.stack.imgur.com/gdyo2.png" alt="Brownian motion"></p>
  
  <p>However, I need to convert that to a histogram, for 5 different locations (e.g: histogram at t=0,1,2,3,4). </p>
  
  <p>Currently the packages I have are numpy, mattplotlib, and scipy. I have seen examples of how to plot a normal distribution, but how do I plot a distribution for the data that I have gathered?</p>
  
  <p>Here is the code I have so far: <a href="http://pastebin.com/AEpQDQd2" rel="nofollow noreferrer">http://pastebin.com/AEpQDQd2</a></p>
  
  <p>(Since I couldn't post two links, I had to paste both files together, the first one is the one that does the computation for brownian motion and the second is the one that outputs the graph that is on the imgur link)</p>
  
  <p>This is not for homework, but it was given as an extra credit problem, and the instructor explicitly said we are allowed to use whatever information we can.</p>
  
  <p>Thanks.</p>