Closed
Description
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:
Master branch:
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:
Master branch:
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:
Master branch: