Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

express plots with "categories" in legend #151

Closed
@K0ertis

Description

@K0ertis

Hi!

I plot pandas dataframe with a "lot" of data

fig = px.line(df,
                x='time [s]',
                y="data [V]",
                line_group="group",
                color='pixel',
                line_dash='group',
                facet_col="int_times [µs]",
                facet_row="gain [1]"
                )

group has 4 elements and pixel has 64 elements which results to a legend which has 256 entries. Would it be possible to just add the type of the legend, like

  • pixel [1:64] -> 64 colors
  • line _group [1:4]
    dash -> group0
    dot -> group1
    dash-> group2
    longdash->group3

So in total there are 68 elements instead of 256, and each data is accessible by clicking to the right pixel/linestyle

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