plotly / plotly/plotly.py

Traces in facet plot drawn outside of figure area.

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

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

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

説明

Code to reproduce the issue:

import pandas as pd
import numpy as np
import plotly
import string
np.random.seed(0)
plotly.io.renderers.default = "browser"
COL_NAME = "Key"
FIGURE_HEIGHT = 12200
column_names = string.ascii_letters[0:20]
# FIGURE_HEIGHT = 7200  # This removes the issue 
# column_names = string.ascii_letters[0:10]  # This removes the issue 
df = pd.DataFrame(np.random.randint(0,100,size=(100, len(column_names))), columns=list(column_names))
df.columns.name = COL_NAME
fig = plotly.express.line(df,facet_row=COL_NAME,height=FIGURE_HEIGHT)
fig.show()

Screenshot of what I'm seeing:
image

Issue may have to do with the height argument or the number of traces included in the figure, or some other aspect I don't suspect.

Thank you for the help and for the great visualization tool!

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

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

はじめの一歩

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

調査の方向性

facet_row、12,200ピクセルの高さ、20列を指定して plotly.express.line を使用する、提供された再現手順から始め、その後 fig.show() で結果の figure を調べます。問題が再現しない高さ 7,200ピクセル、10列の場合と比較します。問題が発生するケースで、すべての traces が figure area 内に収まれば完了です。

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

評価

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

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

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