Skip to content

Commit 5d1d8d8

Browse files
committed
add facet_col_spacing and facet_row_spacing
1 parent cf1c2b9 commit 5d1d8d8

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Diff for: packages/python/plotly/plotly/express/_imshow.py

+9
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ def imshow(
6464
animation_frame=None,
6565
facet_col=None,
6666
facet_col_wrap=None,
67+
facet_col_spacing=None,
68+
facet_row_spacing=None,
6769
color_continuous_scale=None,
6870
color_continuous_midpoint=None,
6971
range_color=None,
@@ -130,6 +132,13 @@ def imshow(
130132
so that the column facets span multiple rows.
131133
Ignored if `facet_col` is None.
132134
135+
facet_col_spacing: float between 0 and 1
136+
Spacing between facet columns, in paper units. Default is 0.02.
137+
138+
facet_row_spacing: float between 0 and 1
139+
Spacing between facet rows created when ``facet_col_wrap`` is used, in
140+
paper units. Default is 0.0.7.
141+
133142
color_continuous_scale : str or list of str
134143
colormap used to map scalar data to colors (for a 2D image). This parameter is
135144
not used for RGB or RGBA images. If a string is provided, it should be the name

0 commit comments

Comments
 (0)