plotly / plotly/plotly.R

3D scatter plot axis disappears when using constant large integers

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

まだ誰も着手していません。

plotly.js
主要言語
R
スター
2.7k
フォーク
641
PR マージ指標
30日以内にマージされた PR はありません

説明

There seems to be an issue with plotting constant Sys.time() in the 3d scatter plot. It is not only restricted to Sys.time() but in general to large integer numbers. You can also replace it with 1589393061. The y axis just disappears. Below I show a bad plotting and a good plotting when using the format function. Is this a bug?

library(plotly)
data_bad<-data.frame(x=c(1,2,3,4,5),
                     y=rep(Sys.time(),5),
                     z=c(3,2,5,23,6),
                     w=c("a","a","b","b","c"))

p_bad <- plot_ly(data_bad, x=~x, y =~y , z =~z, color = ~w, 
                 type="scatter3d", mode="markers")
p_bad

data_bad2<-data.frame(x=c(1,2,3,4,5),
                     y=rep(1589393061,5),
                     z=c(3,2,5,23,6),
                     w=c("a","a","b","b","c"))

p_bad2 <- plot_ly(data_bad2, x=~x, y =~y , z =~z, color = ~w, 
                 type="scatter3d", mode="markers")
p_bad2

data<-data.frame(x=c(1,2,3,4,5),
                 y=rep(format(Sys.time(), "%Y-%M-%D %H:%M:%S"),5),
                 z=c(3,2,5,23,6),
                 w=c("a","a","b","b","c"))
p <- plot_ly(data, x=~x, y =~y , z =~z, color = ~w, 
             type="scatter3d", mode="markers")
p

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

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

はじめの一歩

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

調査の方向性

まず、issue にある再現可能な R の例を実行し、一定の Sys.time()、大きな整数 1589393061、およびフォーマット済みの値で 3D 散布図を比較します。plotly.R の 3D 散布図のレンダリングパスを追跡し、大きな数値で y 軸が消える理由を特定します。これらのケースで軸が表示されたままになり、フォーマット済みの例を壊さなければ完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
r
領域
data-visualization
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

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

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