@@ -106,7 +106,7 @@ Random.seed!(6549) #hide
106
106
model = initialise ()
107
107
_, results = run! (model, 20 ; mdata = [:stock ])
108
108
109
- f = Figure (resolution = (600 , 400 ))
109
+ f = Figure (size = (600 , 400 ))
110
110
ax = f[1 , 1 ] = Axis (
111
111
f,
112
112
xlabel = " Year" ,
@@ -180,7 +180,7 @@ model = initialise()
180
180
yearly (model, s) = s % 365 == 0
181
181
_, results = run! (model, 20 * 365 ; mdata = [:stock ], when = yearly)
182
182
183
- f = Figure (resolution = (600 , 400 ))
183
+ f = Figure (size = (600 , 400 ))
184
184
ax =
185
185
f[1 , 1 ] = Axis (
186
186
f,
@@ -294,7 +294,7 @@ Random.seed!(6549) #hide
294
294
modeldeq = initialise_diffeq ()
295
295
_, resultsdeq = run! (modeldeq, 20 ; mdata = [:stock ])
296
296
297
- f = Figure (resolution = (600 , 400 ))
297
+ f = Figure (size = (600 , 400 ))
298
298
ax = f[1 , 1 ] = Axis (
299
299
f,
300
300
xlabel = " Year" ,
@@ -327,7 +327,7 @@ length(modeldeq.i.sol.t)
327
327
# Compare our two results directly, both start with the same random seed and evolve in
328
328
# precisely the same manner:
329
329
330
- f = Figure (resolution = (600 , 400 ))
330
+ f = Figure (size = (600 , 400 ))
331
331
ax =
332
332
f[1 , 1 ] = Axis (
333
333
f,
@@ -405,7 +405,7 @@ sol = OrdinaryDiffEq.solve(
405
405
callback = OrdinaryDiffEq. CallbackSet (fish, reset),
406
406
)
407
407
discrete = vcat (sol (0 : 365 : (365 * 20 ))[:,:]. .. )
408
- f = Figure (resolution = (600 , 400 ))
408
+ f = Figure (size = (600 , 400 ))
409
409
ax = f[1 , 1 ] = Axis (
410
410
f,
411
411
xlabel = " Year" ,
0 commit comments