File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 7
7
from sugarscape_g1mt .trader_agents import Trader
8
8
9
9
10
- def space_drawer (viz ):
10
+ def space_drawer (model , agent_portrayal ):
11
11
def portray (g ):
12
12
layers = {
13
13
"sugar" : [[np .nan for j in range (g .height )] for i in range (g .width )],
@@ -31,7 +31,7 @@ def portray(g):
31
31
32
32
fig = Figure ()
33
33
ax = fig .subplots ()
34
- out = portray (viz . model .grid )
34
+ out = portray (model .grid )
35
35
# Sugar
36
36
# Important note: imshow by default draws from upper left. You have to
37
37
# always explicitly specify origin="lower".
@@ -42,7 +42,7 @@ def portray(g):
42
42
# Trader
43
43
ax .scatter (** out ["trader" ])
44
44
ax .set_axis_off ()
45
- solara .FigureMatplotlib (fig , dependencies = [ viz . model , viz . df ] )
45
+ solara .FigureMatplotlib (fig )
46
46
47
47
48
48
model_params = {
You can’t perform that action at this time.
0 commit comments