plotly / plotly/plotly.py

add simple independent axes for facet_row and facet_col

未關閉
#4,530 1 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

feature P3
主要語言
Python
星號
18.8k
分支
2.8k
平均合併
16 小時 26 分鐘
30 天內合併 PR
21

描述

Right now it is possible to have independent axes labels/ticks for facets using this trick: https://stackoverflow.com/questions/60997189/how-can-i-make-faceted-plots-in-plotly-have-their-own-individual-yaxes-tick-labe

However, it is kind of hard to remember the 4-line solution by heart.

Is it possible to add something like independent_facet_y=True in the kwargs for plots that support facet? For plots where e.g., facet is age and y axis is height, it's very difficult to interpret data since the smaller values are basically invisible without doing this.

Ideally setting the flag would display axes ticks for each plot and scale the plots according to each facet's range.

For example, seaborn has sharex and sharey arguments that basically do this https://seaborn.pydata.org/generated/seaborn.catplot.html#seaborn-catplot

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

檢視現有支援 facet 的繪圖 API 以及連結的 Stack Overflow workaround,然後將要求的行為與 seaborn 的 sharex 和 sharey 選項進行比較。當適用的 facet 繪圖一致支援明確定義的獨立座標軸選項,並如描述提供每個 facet 的刻度與縮放時,工作即完成。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
plotly, python
領域
data-visualization
Issue 類型
功能
難度
5/5
預估耗時
一週以上
活躍度
停滯
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。