Scatter3D marker flickering/clipping while rotating the plot
まだ誰も着手していません。
- 主要言語
- JavaScript
- スター
- 18.3k
- フォーク
- 2k
- 平均マージ
- 2日 12時間
- マージ済み PR(30日)
- 28
説明
I'm noticing significant flicking/marker clipping while rotating a Scatter3D plot with the mouse.
The code below is a modified form of the example at https://plotly.com/python/3d-scatter-plots/. Note taht the opacity is set to 1.0. As I move around in the plot I see significant clipping/flickering of the markers, particularly when looking along the z-axis. If I change the opacity to 0.8 (like in the example) the flickering goes away. Any opacity other than 1.0 works fine. If you don't specify an opacity property the flickering is present (which is how I found this). I'm using plotly 5.11.0, viewing it in Chrome 107.0.5304.107.
import plotly.graph_objects as go
import numpy as np
import pandas as pd
# Helix equation
t = np.linspace(0, 20, 100)
x, y, z = np.cos(t), np.sin(t), t
z2 = pd.to_datetime('1 Jan 2022') + pd.to_timedelta(t, 'h')
fig = go.Figure(data=[go.Scatter3d(
x=x,
y=y,
z=z2,
mode='markers',
marker=dict(
size=12,
color=z, # set color to an array/list of desired values
colorscale='Viridis', # choose a colorscale
opacity=1.0
)
)])
# tight layout
fig.update_layout(margin=dict(l=0, r=0, b=0, t=0))
fig.show()
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
Chrome 107でplotly 5.11.0を使用して、提供されたScatter3dの例を再現し、marker opacityを1.0にした場合と1.0未満にした場合の両方でプロットを回転させます。特にz軸方向から見た場合のレンダリング動作を比較します。回転中に不透明なマーカーがちらついたりクリップされたりしなくなれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript, python
- 領域
- data-visualization, frontend
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100