Bug in parallel_coordinates()
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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