Bug in parallel_coordinates()
未关闭
还没有人认领这个 Issue。
bug
P3
- 主要语言
- Python
- 星标
- 18.8k
- 派生
- 2.8k
- 平均合并
- 16 小时 26 分钟
- 30 天内合并 PR
- 21
描述
The last line fig.show(height=800) is not working despite the documentation saying it would.
import plotly.express as px
df = px.data.iris()
fig = px.parallel_coordinates(
df,
color="species_id",
dimensions=[
'sepal_width',
'sepal_length',
'petal_width',
'petal_length'
],
color_continuous_scale=px.colors.diverging.Tealrose,
color_continuous_midpoint=2
)
fig.show(height=800)
To remedy the issue, I had to replace the last line with these. It would be nice if the Plotly team can fix this minor bug.
...
fig.update_layout(height=800)
fig.show()
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先运行提供的 parallel_coordinates() 示例,并将 fig.show(height=800) 与文档所述行为进行比较。跟踪 Figure.show 入口点及其对 height 的处理;当文档中的调用无需 update_layout() 即可生成 height 为 800 的图形时,该 issue 即完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- data-visualization
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 42/100