Create a histogram of agent attributes¶

Author: Lukas Breitwieser
In this tutorial we will show how to create a histogram of all agent diameters in the simulation and fit a function to the data.

Let's start by setting up BioDynaMo notebooks.

We want to define a function that creates a cell at a certain position with diameters drawn from a gaussian distribution with $\mu=20$ and $\sigma=5$. The smallest diameter should be larger then $2.0$.

Now that we defined create_cell we can use it to create 400 cells on a plane with $z = 0$, $xmin = ymin = -200$, $xmax = ymax = 200$, and spacing = 20 in both dimensions.