Skip to content

Automatic legend #47

@gnopik

Description

@gnopik

Would be great if the legend is printed automatically when simdec.visualization is called.
Now it needs a few more lines:

from IPython.display import display, HTML

legend_df, styler = simdec.tableau(
    var_names=dec.var_names,
    statistic=dec.statistic,
    states=dec.states,
    bins=dec.bins,
    palette=simdec.palette(dec.states),
)

display(styler)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions