Skip to content
Snippets Groups Projects
plotly-example.py 273 B
Newer Older
William Warriner's avatar
William Warriner committed
import plotly.express as px
import plotly.io as pio

df = px.data.iris()
fig = px.scatter(
    df,
    x="sepal_width",
    y="sepal_length",
    color="species",
    marginal_y="violin",
    marginal_x="box",
    trendline="ols",
    template="simple_white",
)
fig.show()