plotly / plotly/plotly.R

Marker symbol and line rendered in wrong order

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

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

bug difficulty: high priority: medium
主要言語
R
スター
2.7k
フォーク
641
PR マージ指標
30日以内にマージされた PR はありません

説明

Given the code below, Plotly render the marker symbols and lines in wrong order. From df, you can see the point (3, 3) should be a circle without line. But it's rendered as a pentagon with the red circle:

library(plotly)
#> Loading required package: ggplot2
#> 
#> Attaching package: 'plotly'
#> The following object is masked from 'package:ggplot2':
#> 
#>     last_plot
#> The following object is masked from 'package:stats':
#> 
#>     filter
#> The following object is masked from 'package:graphics':
#> 
#>     layout

df <- data.frame(x = seq(1, 10), y = seq(1, 10),
                 Sample_Group = rep(c("N", "T"), 5),
                 Symbol = rep(c("circle", "pentagon"), 5))
df$Symbol_Line <- sapply(df$Symbol, function(x) {ifelse(x == "pentagon", 2, 0)})
df
#>     x  y Sample_Group   Symbol Symbol_Line
#> 1   1  1            N   circle           0
#> 2   2  2            T pentagon           2
#> 3   3  3            N   circle           0
#> 4   4  4            T pentagon           2
#> 5   5  5            N   circle           0
#> 6   6  6            T pentagon           2
#> 7   7  7            N   circle           0
#> 8   8  8            T pentagon           2
#> 9   9  9            N   circle           0
#> 10 10 10            T pentagon           2

p <- plot_ly(df, x = ~x, y = ~y,
             type = "scatter", mode = "markers",
             color = ~Sample_Group,
             marker = list(symbol = ~Symbol,
                           size = 15,
                           line = list(width = ~Symbol_Line,
                                       color = "red")))

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

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

はじめの一歩

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

調査の方向性

issue #1155 の再現可能な R の例から始め、マーカーシンボルとマーカーラインの値がどのようにレンダリングパスへ渡されるかを追跡します。完了の条件は、点 (3, 3) が線なしの円としてレンダリングされ、五角形の点は赤い線を維持することです。

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

評価

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

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

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