empty splom in case of two dimensions
還沒有人認領這個 Issue。
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 42/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 停滯
- 技術堆疊
- numpy, pandas, python
研究方向
從 issue 中的 go.Splom 重現開始,特別關注兩個維度、隱藏的對角線,以及僅顯示下半部的設定。使用 fig.show() 或 fig.write_html() 執行腳本,並追蹤產生的 Figure 行為。完成的標準是:二維、僅顯示下半部的 splom 會渲染其單一 scatter plot,而不是空的 Figure。
由索引模型根據 Issue 內容生成。
描述
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.
- 主要語言
- Python
- 星號
- 18.8k
- 分支
- 2.8k
- 平均合併
- 13 小時 28 分鐘
- 30 天內合併 PR
- 20
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
plotly/plotly.py 的其他 Issue
-
P3 size: 1 task
難度 2/5 1-3 小時 新手友好度 65/100
-
P3 size: 1 task
難度 2/5 1-3 小時 新手友好度 72/100
-
bug P1
難度 1/5 1 小時以內 新手友好度 68/100
-
feature P3
難度 2/5 1-3 小時 新手友好度 62/100
-
feature P3
難度 2/5 1-3 小時 新手友好度 72/100
相似的 Issue
-
bug
難度 2/5 1-3 小時 新手友好度 75/100
xinnan-tech/xiaozhi-fde-talk#263 ·
-
rules
難度 1/5 1 小時以內 新手友好度 90/100
-
難度 2/5 1-3 小時 新手友好度 70/100
huggingface/Repo2RLEnv#163 · 1 則留言 ·
-
難度 1/5 1 小時以內 新手友好度 95/100
huggingface/sentence-transformers#4074 ·
-
comp/dashboard invalid P3
難度 2/5 1-3 小時 新手友好度 70/100
NousResearch/hermes-agent#121143 ·