File tree 1 file changed +5
-5
lines changed
Filter options
1 file changed +5
-5
lines changed
Original file line number Diff line number Diff line change @@ -357,6 +357,9 @@ def __init__(
357
357
"""
358
358
self ._names = None
359
359
360
+ if figure_kwargs is None :
361
+ figure_kwargs = dict ()
362
+
360
363
# output context
361
364
self ._output = None
362
365
@@ -368,9 +371,8 @@ def __init__(
368
371
if all ([_is_arraylike (d ) for d in data ]):
369
372
# Grid computations
370
373
if figure_shape is None :
371
- if figure_kwargs is not None :
372
- if "shape" in figure_kwargs :
373
- figure_shape = figure_kwargs ["shape" ]
374
+ if "shape" in figure_kwargs :
375
+ figure_shape = figure_kwargs ["shape" ]
374
376
else :
375
377
figure_shape = calculate_figure_shape (len (data ))
376
378
@@ -508,8 +510,6 @@ def __init__(
508
510
)
509
511
510
512
figure_kwargs_default = {"controller_ids" : "sync" }
511
- if figure_kwargs is None :
512
- figure_kwargs = dict ()
513
513
514
514
# update the default kwargs with any user-specified kwargs
515
515
# user specified kwargs will overwrite the defaults
You can’t perform that action at this time.
0 commit comments