Summary
xy.legend(toggle=True) already lets a single click hide/show one series, and highlight=True dims the others on hover. Requesting a second step: double-clicking a legend entry isolates that series, matching Plotly's legendclick / legenddoubleclick model.
Requested behavior
- Single click (unchanged): toggles that entry's series visibility.
- Double click:
- If the chart isn't already isolated to this series: hide every other
series, leaving only the double-clicked one visible.
- If the chart is already isolated to this ser
double-click): restore all series to visible.
Use case
We're evaluating xy as a third plotting backend alongside Plotly/Seaborn, including charts where each legend entry is a data-driven category rather than a handful of manually chosen traces. With more than 3-4 categories, single-click-to-toggle means N-1 clicks to inspect just one series. Double-click-to-isolate is the one-click path we (and Plotly users generally) rely on for that.
Environment
Summary
xy.legend(toggle=True)already lets a single click hide/show one series, andhighlight=Truedims the others on hover. Requesting a second step: double-clicking a legend entry isolates that series, matching Plotly'slegendclick/legenddoubleclickmodel.Requested behavior
series, leaving only the double-clicked one visible.
double-click): restore all series to visible.
Use case
We're evaluating
xyas a third plotting backend alongside Plotly/Seaborn, including charts where each legend entry is a data-driven category rather than a handful of manually chosen traces. With more than 3-4 categories, single-click-to-toggle means N-1 clicks to inspect just one series. Double-click-to-isolate is the one-click path we (and Plotly users generally) rely on for that.Environment