plotly / plotly/plotly.py

Horizontal zooming on faceted scatter plots does not scale y axes correctly

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

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

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

説明

The code below produces two plots side by side. Zooming in on the x axis only, using a horizontal motion of the mouse, results in the two y axes being independently rescaled. Zooming using a rectangle or on the y axis works as expected. The error does not appear when using fewer than 501 points.

I'm using Python 3.7.4 and Plotly 4.9.0 on Windows 10.

Example:

import plotly.express as px
import numpy as np
import pandas as pd
size=501
df = pd.DataFrame({'x': np.random.random(size=2*size),
                   'y': np.hstack((np.random.normal(loc=10,  scale=2, size=size), 
                                   np.random.normal(loc=100, scale=2, size=size))),
                   'c': np.hstack((np.zeros(shape=size), np.ones(shape=size)))})

fig = px.scatter(data_frame=df, x='x', y='y', facet_col='c')
fig.show()

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

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

はじめの一歩

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

調査の方向性

提供されたPythonの再現コードを501ポイントとファセット付き散布図で実行し、マウスによる水平方向のズームと、矩形および y 軸によるズームを比較します。データセットが501ポイント以上の場合も含め、水平方向のズームで2つの y 軸のスケールが一貫して保たれれば完了です。

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

評価

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

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

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