Skip to content

Some charts rendering differently on master branch vs Plotly.py 5.24.1 #4863

Closed
@LiamConnors

Description

@LiamConnors

There are a few charts that show differently with what's on master branch vs the latest release of Plotly.py:

1. Histogram with px

import plotly.express as px
tips = px.data.tips()
fig = px.histogram(
    tips, x="total_bill", y="tip", color="sex", marginal="rug", hover_data=tips.columns
)
fig.show()

5.24.1:

Image

Master branch:

Image

2. Timeline with px

import pandas as pd
import plotly.express as px
df = pd.DataFrame(
    [
        dict(Task="Job A", Start="2009-01-01", Finish="2009-02-28"),
        dict(Task="Job B", Start="2009-03-05", Finish="2009-04-15"),
        dict(Task="Job C", Start="2009-02-20", Finish="2009-05-30"),
    ]
)
fig = px.timeline(df, x_start="Start", x_end="Finish", y="Task", color="Task")
fig.show()

5.24.1:

Image

Master branch:

Image

3. Scatter with px

iris = px.data.iris()
fig = px.scatter(
    iris,
    x="sepal_width",
    y="sepal_length",
    color="species",
    marginal_y="rug",
    marginal_x="histogram",
)
fig.show()

5.24.1:

Image

Master branch:

Image

Metadata

Metadata

Assignees

Labels

P1needed for current cyclebugsomething broken

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions