Premium problem83. One Legend for the Whole Figure

Hard Locked

Plot y1 labelled label1 in the left Axes and y2 labelled label2 in the right Axes of a 1x2 Figure, then add a single legend belonging to the Figure covering both, rather than one legend per Axes.

Return the Figure.

Premium problem

This one's part of Premium. Unlock the full Matplotlib track plus every other premium problem on the site.

Implement solve(...)