Error in plotly express scatter with continuous_color_scale and marginal_x
まだ誰も着手していません。
- 主要言語
- Python
- スター
- 18.8k
- フォーク
- 2.8k
- 平均マージ
- 16時間 26分
- マージ済み PR(30日)
- 21
説明
Hello
i am logging this as i think this might be a bug. I found while building a Dash app but the same issue arises in a a jupyter notebook.
import plotly.express as px
df = px.data.iris()
below, it works as expected:
fig = px.scatter(df, x="sepal_width", y="sepal_length", color="sepal_length",color_continuous_scale='Viridis')
fig
so is the following
fig = px.scatter(df, x="sepal_width", y="sepal_length", color="sepal_length",marginal_x='box')
fig
But the following expression breaks down
fig = px.scatter(df, x="sepal_width", y="sepal_length", color="sepal_length",marginal_x='box',color_continuous_scale='Viridis')
fig

it looks like box marker is using 'V' of Viridis in the color_continuous_scale.
Thanks
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、提供されている Python の例を Jupyter notebook で実行し、動作するケースと marginal_x='box' および color_continuous_scale='Viridis' の組み合わせを比較します。その組み合わせが scatter トレースと marginal box トレースをどのように構築するかを追跡します。完了条件は、連続スケールの誤った色を使用する box marker なしでプロットがレンダリングされることです。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- jupyter-notebook, python
- 領域
- data-visualization
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100