Contour not shown correctly in 3D Tri-Surf Plots
オープン
まだ誰も着手していません。
- 主要言語
- R
- スター
- 2.7k
- フォーク
- 641
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
When plotting the 3D tri-surf figure, if we don't specify the facecolor of the plot, the contour will work well.
However, if we specify the faceolor of each faces, the contour will be stuck in the middle can't move and the coordinate
of each vertex also doesn't show its correct x,y,z.
The examples in the tutorials also have this problem.
Not sure if there have other way to specifiy the facecolor without making these issues.
Thank you very much for your help!
fig <- plot_ly(type = 'mesh3d',
x = c(0, 1, 2, 0),
y = c(0, 0, 1, 2),
z = c(0, 2, 0, 1),
i = c(0, 0, 0, 1),
j = c(1, 2, 3, 2),
k = c(2, 3, 1, 3),
opacity = 0.5,
contour = list(show = TRUE, color="#000", width=15)
#facecolor = toRGB(viridisLite::viridis(4))
)
fig
fig <- plot_ly(type = 'mesh3d',
x = c(0, 1, 2, 0),
y = c(0, 0, 1, 2),
z = c(0, 2, 0, 1),
i = c(0, 0, 0, 1),
j = c(1, 2, 3, 2),
k = c(2, 3, 1, 3),
opacity = 0.5,
contour = list(show = TRUE, color="#000", width=15),
facecolor = toRGB(viridisLite::viridis(4))
)
fig
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、issue に提供されている 2 つの R plot_ly mesh3d の例を実行し、facecolor の有無による輪郭の移動と頂点座標を比較します。3D tri-surf のレンダリングパスを追跡して違いを特定し、facecolor によって輪郭の位置や座標が誤ることがなくなった時点で issue は完了とします。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- r
- 領域
- data-visualization
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100