Skip to content

scatter_matrix is incorrect when using color and non-sorted index #3577

Closed
@shane-kercheval

Description

@shane-kercheval

related to #3576

df = pd.DataFrame({
        'A': [1, 2, 3, 4],
        'B': [1, 2, 3, 4],
        'C': [1, 2, 3, 4],
    },
    index=[3, 2, 1, 0]
)
px.scatter_matrix(df)
px.scatter_matrix(df, color='C')

px.scatter_matrix(df) produces:

Screen Shot 2022-01-31 at 9 51 05 AM

px.scatter_matrix(df, color='C') produces:

Screen Shot 2022-01-31 at 9 49 30 AM

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