@@ -1984,7 +1984,7 @@ def make_figure(args, constructor, trace_patch=None, layout_patch=None):
1984
1984
row = m .val_map [val ]
1985
1985
else :
1986
1986
if (
1987
- bool ( args .get ("marginal_x" , False )) # there is a marginal
1987
+ args .get ("marginal_x" , None ) is not None # there is a marginal
1988
1988
and trace_spec .marginal != "x" # and we're not it
1989
1989
):
1990
1990
row = 2
@@ -2068,10 +2068,10 @@ def make_figure(args, constructor, trace_patch=None, layout_patch=None):
2068
2068
nrows = math .ceil (ncols / facet_col_wrap )
2069
2069
ncols = min (ncols , facet_col_wrap )
2070
2070
2071
- if args .get ("marginal_x" ) :
2071
+ if args .get ("marginal_x" , None ) is not None :
2072
2072
nrows += 1
2073
2073
2074
- if args .get ("marginal_y" ) :
2074
+ if args .get ("marginal_y" , None ) is not None :
2075
2075
ncols += 1
2076
2076
2077
2077
fig = init_figure (
@@ -2118,7 +2118,7 @@ def init_figure(args, subplot_type, frame_list, nrows, ncols, col_labels, row_la
2118
2118
2119
2119
# Build column_widths/row_heights
2120
2120
if subplot_type == "xy" :
2121
- if bool ( args .get ("marginal_x" , False )) :
2121
+ if args .get ("marginal_x" , None ) is not None :
2122
2122
if args ["marginal_x" ] == "histogram" or ("color" in args and args ["color" ]):
2123
2123
main_size = 0.74
2124
2124
else :
@@ -2131,7 +2131,7 @@ def init_figure(args, subplot_type, frame_list, nrows, ncols, col_labels, row_la
2131
2131
else :
2132
2132
vertical_spacing = args .get ("facet_row_spacing" , None ) or 0.03
2133
2133
2134
- if bool ( args .get ("marginal_y" , False )) :
2134
+ if args .get ("marginal_y" , None ) is not None :
2135
2135
if args ["marginal_y" ] == "histogram" or ("color" in args and args ["color" ]):
2136
2136
main_size = 0.74
2137
2137
else :
0 commit comments