Skip to content

Commit 0e9e321

Browse files
committed
do not repeat axes labels with facets
1 parent 8625f75 commit 0e9e321

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -573,9 +573,9 @@ def imshow(
573573
)
574574
fig.update_traces(hovertemplate=hovertemplate)
575575
if labels["x"]:
576-
fig.update_xaxes(title_text=labels["x"])
576+
fig.update_xaxes(title_text=labels["x"], row=1)
577577
if labels["y"]:
578-
fig.update_yaxes(title_text=labels["y"])
578+
fig.update_yaxes(title_text=labels["y"], col=1)
579579
configure_animation_controls(args, go.Image, fig)
580580
fig.update_layout(template=args["template"], overwrite=True)
581581
return fig

0 commit comments

Comments
 (0)