plotly / plotly/plotly.py

Legend makes it associated with the subplot with dynamically responsive design and the ability to enable turn off individual trace

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

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

主要言語
Python
スター
18.8k
フォーク
2.8k
平均マージ
16時間 26分
マージ済み PR(30日)
21

説明

The current legend_tracegroupgap implementation is in pixel.

Desired behavior:
if I have 2 subplots (col=2, row=1) to be able to enable legend_per_subplot = True

Default vertical legend on the right side:
subplot(2 traces) | Legend with 2 traces
subplot(4 traces) | Legend with 4 traces

The workaround with legend_tracegroupgap does not match the need as they are expressed in pixels instead of domain-like subplots.

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

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

はじめの一歩

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

調査の方向性

まず、現在の legend_tracegroupgap の実装と、Python グラフ作成ライブラリで凡例がサブプロットにどのように関連付けられているかを確認します。2 列 1 行のサブプロットレイアウトでサブプロットごとの凡例を有効にでき、各凡例が関連付けられたサブプロットのトレースだけを表示し、ピクセルベースの間隔ではなくレスポンシブな配置になると、作業は完了です。

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

評価

技術スタック
python
領域
data-visualization
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
25/100

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

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