Kernel: Python 3 (Ubuntu Linux)
Mesa on CoCalc (Python 3, Ubuntu Linux)
Mesa is a modular framework for building, analyzing and visualizing agent-based models.
https://mesa.readthedocs.io/en/master/tutorials/intro_tutorial.html
In [1]:
<module 'mesa' from '/usr/local/lib/python3.6/dist-packages/mesa/__init__.py'>
In [2]:
'0.8.4'
In [3]:
In [4]:
In [5]:
In [6]:
In [7]:
(array([ 5., 4., 0., 0., 0., 0., 0., 0., 0., 1.]),
array([ 0. , 0.6, 1.2, 1.8, 2.4, 3. , 3.6, 4.2, 4.8, 5.4, 6. ]),
<a list of 10 Patch objects>)
In [8]:
(array([ 428., 308., 160., 58., 37., 5., 4.]),
array([0, 1, 2, 3, 4, 5, 6, 7]),
<a list of 7 Patch objects>)
In [9]:
In [10]:
In [11]:
In [12]:
In [13]:
In [14]:
In [15]:
<matplotlib.axes._subplots.AxesSubplot at 0x7f7605acbc88>
In [16]:
Wealth | ||
---|---|---|
Step | AgentID | |
0 | 0 | 1 |
1 | 1 | |
2 | 1 | |
3 | 1 | |
4 | 1 |
In [17]:
<matplotlib.axes._subplots.AxesSubplot at 0x7f7605abee80>
In [0]: