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([ 4., 0., 0., 3., 0., 0., 2., 0., 0., 1.]),
array([ 0. , 0.3, 0.6, 0.9, 1.2, 1.5, 1.8, 2.1, 2.4, 2.7, 3. ]),
<a list of 10 Patch objects>)
In [8]:
(array([ 446., 292., 156., 53., 39., 6., 8.]),
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 0x7f4c83f84710>
In [16]:
Wealth | ||
---|---|---|
Step | AgentID | |
0 | 0 | 1 |
1 | 1 | |
2 | 1 | |
3 | 1 | |
4 | 1 |
In [17]:
<matplotlib.axes._subplots.AxesSubplot at 0x7f4c83f26a20>
In [0]: