@@ -280,15 +280,15 @@ def add_state_variable_selector(self):
280
280
281
281
#State variable for the x axis
282
282
pos_shp = [0.07 , 0.05 , 0.065 , 0.12 + 0.006 * self .model .nvar ]
283
- rax = self .ipp_fig .add_axes (pos_shp , facecolor = AXCOLOUR , title = "x-axis" )
283
+ rax = self .ipp_fig .add_axes (pos_shp , axisbg = AXCOLOUR , title = "x-axis" )
284
284
self .state_variable_x = widgets .RadioButtons (rax ,
285
285
tuple (self .model .state_variables ),
286
286
active = svx_ind )
287
287
self .state_variable_x .on_clicked (self .update_svx )
288
288
289
289
#State variable for the y axis
290
290
pos_shp = [0.14 , 0.05 , 0.065 , 0.12 + 0.006 * self .model .nvar ]
291
- rax = self .ipp_fig .add_axes (pos_shp , facecolor = AXCOLOUR , title = "y-axis" )
291
+ rax = self .ipp_fig .add_axes (pos_shp , axisbg = AXCOLOUR , title = "y-axis" )
292
292
self .state_variable_y = widgets .RadioButtons (rax ,
293
293
tuple (self .model .state_variables ),
294
294
active = svy_ind )
@@ -301,7 +301,7 @@ def add_mode_selector(self):
301
301
should be displayed.
302
302
"""
303
303
pos_shp = [0.02 , 0.07 , 0.04 , 0.1 + 0.002 * self .model .number_of_modes ]
304
- rax = self .ipp_fig .add_axes (pos_shp , facecolor = AXCOLOUR , title = "Mode" )
304
+ rax = self .ipp_fig .add_axes (pos_shp , axisbg = AXCOLOUR , title = "Mode" )
305
305
mode_tuple = tuple (range (self .model .number_of_modes ))
306
306
self .mode_selector = widgets .RadioButtons (rax , mode_tuple , active = 0 )
307
307
self .mode_selector .on_clicked (self .update_mode )
@@ -323,23 +323,23 @@ def add_axes_range_sliders(self):
323
323
max_val_y = self .model .state_variable_range [self .svy ][1 ] + 4.0 * default_range_y
324
324
325
325
sax = self .ipp_fig .add_axes ([0.04 , 0.835 , 0.125 , 0.025 ],
326
- facecolor = AXCOLOUR )
326
+ axisbg = AXCOLOUR )
327
327
sl_x_min = widgets .Slider (sax , "xlo" , min_val_x , max_val_x ,
328
328
valinit = self .model .state_variable_range [self .svx ][0 ])
329
329
sl_x_min .on_changed (self .update_range )
330
330
331
- sax = self .ipp_fig .add_axes ([0.04 , 0.8 , 0.125 , 0.025 ], facecolor = AXCOLOUR )
331
+ sax = self .ipp_fig .add_axes ([0.04 , 0.8 , 0.125 , 0.025 ], axisbg = AXCOLOUR )
332
332
sl_x_max = widgets .Slider (sax , "xhi" , min_val_x , max_val_x ,
333
333
valinit = self .model .state_variable_range [self .svx ][1 ])
334
334
sl_x_max .on_changed (self .update_range )
335
335
336
336
sax = self .ipp_fig .add_axes ([0.04 , 0.765 , 0.125 , 0.025 ],
337
- facecolor = AXCOLOUR )
337
+ axisbg = AXCOLOUR )
338
338
sl_y_min = widgets .Slider (sax , "ylo" , min_val_y , max_val_y ,
339
339
valinit = self .model .state_variable_range [self .svy ][0 ])
340
340
sl_y_min .on_changed (self .update_range )
341
341
342
- sax = self .ipp_fig .add_axes ([0.04 , 0.73 , 0.125 , 0.025 ], facecolor = AXCOLOUR )
342
+ sax = self .ipp_fig .add_axes ([0.04 , 0.73 , 0.125 , 0.025 ], axisbg = AXCOLOUR )
343
343
sl_y_max = widgets .Slider (sax , "yhi" , min_val_y , max_val_y ,
344
344
valinit = self .model .state_variable_range [self .svy ][1 ])
345
345
sl_y_max .on_changed (self .update_range )
@@ -361,7 +361,7 @@ def add_state_variable_sliders(self):
361
361
for sv in range (self .model .nvar ):
362
362
offset += 0.035
363
363
pos_shp = [0.04 , 0.6 - offset , 0.125 , 0.025 ]
364
- sax = self .ipp_fig .add_axes (pos_shp , facecolor = AXCOLOUR )
364
+ sax = self .ipp_fig .add_axes (pos_shp , axisbg = AXCOLOUR )
365
365
sv_str = self .model .state_variables [sv ]
366
366
self .sv_sliders [sv_str ] = widgets .Slider (sax , sv_str ,
367
367
msv_range [sv_str ][0 ],
@@ -381,7 +381,7 @@ def add_param_sliders(self):
381
381
for param , default_param in self .parameters .items ():
382
382
offset += 0.035
383
383
sax = self .ipp_fig .add_axes ([0.825 , 0.865 - offset , 0.125 , 0.025 ],
384
- facecolor = AXCOLOUR )
384
+ axisbg = AXCOLOUR )
385
385
default_param = default_param [0 ]
386
386
param_range = self .model .trait [param ].trait .inits .kwd .get ('range' , None )
387
387
if param_range :
@@ -402,7 +402,7 @@ def add_noise_slider(self):
402
402
be set.
403
403
"""
404
404
pos_shp = [0.825 , 0.1 , 0.125 , 0.025 ]
405
- sax = self .ipp_fig .add_axes (pos_shp , facecolor = AXCOLOUR )
405
+ sax = self .ipp_fig .add_axes (pos_shp , axisbg = AXCOLOUR )
406
406
407
407
self .noise_slider = widgets .Slider (sax , "Log Noise" , - 9.0 , 1.0 ,
408
408
valinit = self .integrator .noise .nsig )
0 commit comments