plotly / plotly/plotly.js

`mirror: "all"`: spurious ticks

オープン
#5,853 コメント 0 件 リアクション 2 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

bug P3
主要言語
JavaScript
スター
18.3k
フォーク
2k
平均マージ
2日 12時間
マージ済み PR(30日)
28

説明

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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

リンク先の CodePen の例を使用して動作を再現し、共有軸のサブプロットで mirror: "all"mirror: "allticks" を比較します。1 つ目のサブプロットの原因となっている軸ミラーリングの動作を追跡し、その後、mirror: "all" が目盛りなしでミラーされた線を描画する一方、ミラーされない想定の軸では目盛りが保持されることを確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript
領域
data-visualization
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。