empty splom in case of two dimensions
未關閉
還沒有人認領這個 Issue。
bug
P3
- 主要語言
- Python
- 星號
- 18.8k
- 分支
- 2.8k
- 平均合併
- 16 小時 26 分鐘
- 30 天內合併 PR
- 21
描述
Creating a splom with two dimensions, no diagonal and only the upper or lower half results in an empty figure.
Code that reproduces the issue:
import numpy as np
import pandas as pd
import plotly.graph_objects as go
data = pd.DataFrame({"col1": np.random.rand(10), "col2": np.random.rand(10)})
fig = go.Figure(
go.Splom(
dimensions=[{"label": label, "values": data[label]} for label in data.columns],
diagonal={"visible": False},
showupperhalf=False,
showlowerhalf=True,
),
)
fig.write_html("test.html") # or fig.show()
# Gives me an empty plot. Setting `diagonal` or `showupperhalf` to `True` does give a plot
Expected result
A single scatter plot.
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
從 issue 中的 go.Splom 重現開始,特別關注兩個維度、隱藏的對角線,以及僅顯示下半部的設定。使用 fig.show() 或 fig.write_html() 執行腳本,並追蹤產生的 Figure 行為。完成的標準是:二維、僅顯示下半部的 splom 會渲染其單一 scatter plot,而不是空的 Figure。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- numpy, pandas, python
- 領域
- data-visualization
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 42/100