Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 090f142

Browse files
Hide ticks and axis line for the marginal value axes
1 parent 5830055 commit 090f142

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

‎packages/python/plotly/plotly/express/_core.py‎

Lines changed: 2 additions & 2 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /