Skip to content

Checkboxes in the Legend #12

Description

@ddkasa

Allowing for checkboxes in the newly added legend would be great. If the PlotWidget gets cluttered the user simply could uncheck certain datasets and replot.

My idea was to handle it internally through the widget and just have an additional visible boolean attribute in the DataSet structure, which could be checked when plotting or you could store it in a separate data structure that mirrors PlotWidget._datasets inside a mapping for faster access and is used to filter a new list on these kinds of changes.

Posting messages would still be required from the legend, as the user or the internal widget would still need to be notified in order to update the datasets.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestlow-priorityWill not work on this for some time

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions