plotly / plotly/plotly.py

Polar barplots do not have reset zoom available

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

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

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

説明

I'm creating polar barplots to visualize angular histograms. These plots do have a zoom option in the modebar, but not a resetScale or zoomout. So I can zoom in, but there is no way to zoom out again.

Trying to add these buttons explicitly doesn't work. The modebar_add function does not throw an error, but no buttons are added either.

import plotly.graph_objects as go
import numpy as np

fig = go.Figure()

bins = np.linspace(0,358,180)
arr = np.array(bins)

series = [90+20*np.random.normal() for _ in np.arange(100)]

count, division = np.histogram(series, bins=bins)

fig.add_trace(go.Barpolar(
    r=count,
    theta=series,
    width=1,
    marker_line_width=2,
    opacity=0.5,
    base=0
))

fig.update_layout(
    title='Polar histogram',
    width=1000,
    height=1000,
    template=None,
    polar = dict(
        angularaxis = dict(showticklabels=True,
                           ticks='',
                           ),
    ),
    modebar_add=['resetScale',
                 'zoomout'],
)


fig.show()

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

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

はじめの一歩

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

調査の方向性

まず、提供されている Python の再現コードを実行し、極座標の棒グラフで modebar アクション、特に resetScale と zoomout がどのように公開されているかを確認します。ズームとリセットの期待される動作を確認したうえで、このプロットタイプで両方のボタンが機能するように、関連するリグレッションテストのカバレッジを追加または更新します。

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

評価

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

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

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