Skip to content

Commit c2860de

Browse files
committed
Added check to catch if no yref was supplied
1 parent cc7e200 commit c2860de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: packages/python/plotly/plotly/basedatatypes.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4053,7 +4053,7 @@ def _process_multiple_axis_spanning_shapes(
40534053
row=row,
40544054
col=col,
40554055
exclude_empty_subplots=exclude_empty_subplots,
4056-
yref=shape_kwargs["yref"],
4056+
yref=shape_kwargs["yref"] if "yref" in shape_kwargs.keys() else "y",
40574057
)
40584058
# update xref and yref for the new shapes and annotations
40594059
for layout_obj, n_layout_objs_before in zip(

0 commit comments

Comments
 (0)