What are some ways to deal with legends that don't fit easily in the plottable area, or obscure too much of it? I can restrict it to a single row or column, but when the number of plotted items is high, the legend will be cut off and unreadable past a certain point.

Is there a way to create a scrollable legend? It doesn't inherit from QWidget, so I don't think I can use a regular QScrollArea. Otherwise that would be a solution I'd like. Just one row wide, but scrollable.