Skip to content

Error in plotly express scatter with continuous_color_scale and marginal_x #2059

Open
@chk2817

Description

@chk2817

Hello

i am logging this as i think this might be a bug. I found while building a Dash app but the same issue arises in a a jupyter notebook.

import plotly.express as px
df = px.data.iris()

below, it works as expected:

fig = px.scatter(df, x="sepal_width", y="sepal_length", color="sepal_length",color_continuous_scale='Viridis')
fig

so is the following

fig = px.scatter(df, x="sepal_width", y="sepal_length", color="sepal_length",marginal_x='box')
fig

But the following expression breaks down

fig = px.scatter(df, x="sepal_width", y="sepal_length", color="sepal_length",marginal_x='box',color_continuous_scale='Viridis')
fig

image

it looks like box marker is using 'V' of Viridis in the color_continuous_scale.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3backlogbugsomething broken

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions