Skip to content

pattern_shape_map doesn't work in plotly.express #3849

@LasseVDHeydtQC

Description

@LasseVDHeydtQC

See a minimal example below. While color maps work fine, the pattern map is ignored.

import pandas as pd
import plotly.express as px  #version 5.9.0

dummy_data = pd.DataFrame({"A":[2,3,4,3,2,5],"B":[3,6,4,6,5,1]})
px.bar(dummy_data,pattern_shape_map={"A":".","B":"+"}, color_discrete_map={"A":"green","B":"blue"})

Screenshot 2022-08-14 at 12 15 08

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions