plotly / plotly/plotly.js

`mirror: "all"`: spurious ticks

Open
#5,853 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug P3
Dominant language
JavaScript
Stars
18.3k
Forks
2k
Avg merge
2d 12h
Merged PRs (30d)
28

Description

The documentation of mirror states that:

If "all", axis lines are mirrored on all shared-axes subplots. If "allticks", axis lines and ticks are mirrored on all shared-axes subplots.

I.e., from what I gather mirror: "all" should not put any tick marks but merely draw a line. Presently, however, it does put tick marks on the mirrored axis of the first subplot (or even solitary plot).

Previously, a variant of this was noted in #4136 where mirror: "all" would behave like mirror: "allticks". This was addressed in #4140, but the fix seems only to have addressed part of the issue, however. Specifically:

Example Behavior
Before #4140 (v1.49.3) https://codepen.io/thchr/pen/yLbpowE Ticks on all mirrored axes
After #4140 (v1.49.4 and later) https://codepen.io/thchr/pen/qBmpXge Ticks on mirrored axis of first subplot

What I thought expected behavior would be is this (i.e. tick on no mirrored axis; only the left-most non-mirrored y-axis of the first subplot):
image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the behavior using the linked CodePen examples and compare mirror: "all" with mirror: "allticks" on shared-axis subplots. Trace the axis-mirroring behavior responsible for the first subplot, then verify that mirror: "all" draws mirrored lines without tick marks while the expected non-mirrored axis retains its ticks.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
data-visualization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.