Skip to content

Commit 99e7e3f

Browse files
committed
feedback
1 parent 7fd2702 commit 99e7e3f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

plotly/_subplots.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,9 @@ def _check_hv_spacing(dimsize, spacing, name, dimvarname, dimname):
748748

749749
_configure_shared_axes(layout, grid_ref, specs, "x", shared_xaxes, row_dir, False)
750750
_configure_shared_axes(layout, grid_ref, specs, "y", shared_yaxes, row_dir, False)
751-
if secondary_y:
751+
752+
any_secondary_y = any(spec["secondary_y"] for spec_row in specs for spec in spec_row if spec is not None)
753+
if any_secondary_y:
752754
_configure_shared_axes(
753755
layout, grid_ref, specs, "y", shared_yaxes, row_dir, True
754756
)

0 commit comments

Comments
 (0)