Parallel plot: controlling angle and position behavior
未关闭
还没有人认领这个 Issue。
feature
P3
- 主要语言
- Python
- 星标
- 18.8k
- 派生
- 2.8k
- 平均合并
- 16 小时 26 分钟
- 30 天内合并 PR
- 21
描述
Hi plotly team,
When the labelangle is below some threshold, the axis label gets centered automatically (like "choose_from(...)" on the figure below). Instead, we'd like to control this behavior with a parameter, so that long texts can fit the screen nicely, with a low angle and right alignment with the axis. WDYT?
Ideally, something like:
import plotly.graph_objects as go
go.Figure(
go.Parcoords(
dimensions=[
{
"label": "hello " * 5,
"values": [1, 2, 4, 5],
}
],
labelangle=20,
labelside="top",
align_center=False, # <--
)
)
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 go.Parcoords 入口点开始,检查 labelangle 和 labelside 的公开方式及处理方式。确定所请求的 align_center 行为应放在哪里,然后添加覆盖测试,证明低角度标签可以保留所请求的对齐方式,同时不破坏现有默认值。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- data-visualization
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100