Difference in NaNs in hover values between figure and figure widget
オープン
まだ誰も着手していません。
bug
P3
- 主要言語
- Python
- スター
- 18.8k
- フォーク
- 2.8k
- 平均マージ
- 16時間 26分
- マージ済み PR(30日)
- 21
説明
Nans are labeled as 0.0 when using figure, but correctly as NaN when using FigureWidget.
Minimal reproducible example .
import numpy as np
import plotly.graph_objects as go
x = np.random.random(10)
y = np.random.random(10)
color = np.ones(10)*np.nan
fig = go.Figure(
data=go.Scatter(
x=x,
y=y,
marker=dict(
size=16, #set color equal to a variable
colorscale='Viridis', # one of plotly colorscales
showscale=True,
color=color
),
mode='markers',
hoverinfo="text",
hovertemplate="x=%{x:.3f}<br>y=%{y:.3f}<br>%{marker.color:.3f}"
)
)
fig

go.FigureWidget(fig)

コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、go.Figure と go.FigureWidget の両方で最小再現例を実行し、NaN を含む marker.color に対して生成される hover 値を比較します。異なる hover 値の処理を追跡し、両方の図の種類で hovertemplate に NaN が一貫して表示されるときに完了を確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- numpy, plotly, python
- 領域
- data-visualization
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100