plotly / plotly/plotly.js

Unclear Intended behavior for marker.size=0 for scatter and scattergl

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

@LiamConnors がすでに取り組んでいます。

2024年7月12日 から。

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

説明

Setting the marker size to zero could have two reasonable interpretations:

  1. 0 is a valid input and the markers don't get plotted
  2. 0 is not a valid input and the markers get plotted in the default size

It seems Option 2 is the current implementation as of v2.28.0 (codepen link). But is that intentional? The documentation says

size
Parent: data[type=scattergl].marker
Type: number or array of numbers greater than or equal to 0
Default: 6
Sets the marker size(in px).

The documentation sounds a bit more like option 1, to me, because 0 is inside the valid range. Also, an array of all 0s does not get plotted, which I assumed should be the same behavior of a single 0.

Should the documentation be clarified or the implementation be changed?

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

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

はじめの一歩

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

評価

この issue はまだ評価されていません。

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

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