plotly / plotly/plotly.py

Bug in parallel_coordinates()

未关闭
#4,242 4 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 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()

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 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

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。