enable setting px.scatter error bars of same color as the marker
まだ誰も着手していません。
- 主要言語
- Python
- スター
- 18.8k
- フォーク
- 2.8k
- 平均マージ
- 16時間 26分
- マージ済み PR(30日)
- 21
説明
I am making an error bar plot using px.scatter. I want to set each error bar to the same color as the marker. Below is the code showing how I am making the scatter plot. As can be seen from the code, I have a continuous scale and the markers are colored based on the column 'size' from my dataframe. I have looked quite a lot in the plotly documentation but I am unable to find a way to set the error bars of the same color as the marker. Is there a fix for this? Does plotly support different colored error bars for continuous data? Any help or suggestions would be appreciated.
I have also attached a link to the screenshot of the plot (the plot is zoomed in). As can be seen from the plot, the markers have colors based on the continuous scale whereas the all the lines have the same color.
df = pd.read_csv(options['file'], sep = ',')
size = df['size'].to_list()
fig = px.scatter(df,
x = "start",
y = "rank",
error_x = "duration",
render_mode = 'auto',
facet_row = 'api',
category_orders ={"api": ["MPIIO", "POSIX"]})
fig.update_traces(
marker = dict(
color= size,
colorscale = "portland",
colorbar=dict(
title = "Request Size <br>(Bytes)",
thickness=20
),
showscale=True
),
error_x = dict(
width = 0,
symmetric=False,
),
)
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
error_x を有効にした連続的なマーカー色の報告済みの px.scatter 例を、issue に示されている px.scatter と fig.update_traces の呼び出しを起点として再現してください。Plotly が連続的なマーカー色をエラーバーにマッピングすることをサポートしているかを確認し、例で各マーカーの色に一致するエラーバーが生成されるか、またはその制限が明確な説明とともに文書化されれば、作業完了とみなしてください。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- data-visualization
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100