From 0e9e321127183a89d3b303b4d22b1ce9e8913001 Mon Sep 17 00:00:00 2001 From: Emmanuelle Gouillart Date: Thu, 3 Dec 2020 15:23:28 +0100 Subject: [PATCH] do not repeat axes labels with facets --- packages/python/plotly/plotly/express/_imshow.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/python/plotly/plotly/express/_imshow.py b/packages/python/plotly/plotly/express/_imshow.py index 3ed1164b05c..e8dc2d28c1f 100644 --- a/packages/python/plotly/plotly/express/_imshow.py +++ b/packages/python/plotly/plotly/express/_imshow.py @@ -573,9 +573,9 @@ def imshow( ) fig.update_traces(hovertemplate=hovertemplate) if labels["x"]: - fig.update_xaxes(title_text=labels["x"]) + fig.update_xaxes(title_text=labels["x"], row=1) if labels["y"]: - fig.update_yaxes(title_text=labels["y"]) + fig.update_yaxes(title_text=labels["y"], col=1) configure_animation_controls(args, go.Image, fig) fig.update_layout(template=args["template"], overwrite=True) return fig