plotly / plotly/plotly.py

Bug in parallel_coordinates()

Open
#4,242 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug P3
Dominant language
Python
Stars
18.8k
Forks
2.8k
Avg merge
16h 26m
Merged PRs (30d)
21

Description

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()

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running the provided parallel_coordinates() example and compare fig.show(height=800) with the documented behavior. Trace the Figure.show entry point and its height handling; the issue is done when the documented call produces a figure with height 800 without requiring update_layout().

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data-visualization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.