Animation glitch with missing data
オープン
まだ誰も着手していません。
bug
P3
- 主要言語
- Python
- スター
- 18.8k
- フォーク
- 2.8k
- 平均マージ
- 16時間 26分
- マージ済み PR(30日)
- 21
説明
When having missing at the start time. Scatter markers are not being draw. When another marker has no values after a certain point in time this point "converts" to the no drawn point.
Im using plotly 4.5.0 in Python 3.7 with Anaconda.
Here is an example:
df = pd.DataFrame([
{"time": 0, "id": "A", "x": 0, "y": 0}, # No data for B at timestep 0
{"time": 1, "id": "A", "x": 0, "y": 1},
{"time": 1, "id": "B", "x": 1, "y": 0},
{"time": 2, "id": "A", "x": 0, "y": 2},
{"time": 2, "id": "B", "x": 1, "y": 1},
{"time": 3, "id": "B", "x": 1, "y": 2}, # No data for A at timestep 3
])
fig = px.scatter(
data_frame=df,
x="x", y="y",
color="id",
animation_frame="time",
hover_data=df.columns,
range_x=(-1, 3),
range_y=(-1, 3),
)
fig.show()

Unfortunately I can't upload an animation of the "conversion".
Thanks in advance!
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
提供された Python 3.7 と Plotly 4.5.0 の例を実行し、生成された散布図アニメーションのフレームを調べます。データの先頭または末尾で id が存在しないフレームを比較し、欠落したマーカーが消えたり変換されたりせず、一貫して処理されることを確認します。報告された不具合なしに両方の欠損データケースがアニメーション表示されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- data-visualization
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100