From 090f1429f68b1142870094f1b07363a1d45e21ab Mon Sep 17 00:00:00 2001 From: joelostblom Date: Thu, 7 Nov 2019 17:37:07 +0100 Subject: [PATCH] Hide ticks and axis line for the marginal value axes --- packages/python/plotly/plotly/express/_core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/python/plotly/plotly/express/_core.py b/packages/python/plotly/plotly/express/_core.py index 1b5aee6e0f4..503edaf7b9c 100644 --- a/packages/python/plotly/plotly/express/_core.py +++ b/packages/python/plotly/plotly/express/_core.py @@ -375,14 +375,14 @@ def configure_cartesian_marginal_axes(args, fig, orders): # Configure axis ticks on marginal subplots if args["marginal_x"]: - fig.update_yaxes(showticklabels=False, row=nrows) + fig.update_yaxes(showticklabels=False, showline=False, ticks="", row=nrows) if args["template"].layout.yaxis.showgrid is None: fig.update_yaxes(showgrid=args["marginal_x"] == "histogram", row=nrows) if args["template"].layout.xaxis.showgrid is None: fig.update_xaxes(showgrid=True, row=nrows) if args["marginal_y"]: - fig.update_xaxes(showticklabels=False, col=ncols) + fig.update_xaxes(showticklabels=False, showline=False, ticks="", col=ncols) if args["template"].layout.xaxis.showgrid is None: fig.update_xaxes(showgrid=args["marginal_y"] == "histogram", col=ncols) if args["template"].layout.yaxis.showgrid is None: