Skip to content

Commit 16ae853

Browse files
Merge pull request #1882 from joelostblom/marginal-showline
Hide ticks and axis line for the marginal value axes
2 parents 96967d7 + 090f142 commit 16ae853

File tree

1 file changed

+2
-2
lines changed
  • packages/python/plotly/plotly/express

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -375,14 +375,14 @@ def configure_cartesian_marginal_axes(args, fig, orders):
375375

376376
# Configure axis ticks on marginal subplots
377377
if args["marginal_x"]:
378-
fig.update_yaxes(showticklabels=False, row=nrows)
378+
fig.update_yaxes(showticklabels=False, showline=False, ticks="", row=nrows)
379379
if args["template"].layout.yaxis.showgrid is None:
380380
fig.update_yaxes(showgrid=args["marginal_x"] == "histogram", row=nrows)
381381
if args["template"].layout.xaxis.showgrid is None:
382382
fig.update_xaxes(showgrid=True, row=nrows)
383383

384384
if args["marginal_y"]:
385-
fig.update_xaxes(showticklabels=False, col=ncols)
385+
fig.update_xaxes(showticklabels=False, showline=False, ticks="", col=ncols)
386386
if args["template"].layout.xaxis.showgrid is None:
387387
fig.update_xaxes(showgrid=args["marginal_y"] == "histogram", col=ncols)
388388
if args["template"].layout.yaxis.showgrid is None:

0 commit comments

Comments
 (0)