Fix for legend with both lines and patches

Area legend is a property of the plot trace (i.e. `draw`) and not
a property of the whole `axis`.

This means that we can now support axes containing both lines and patches.

This fixes #271 and #272. The fix has been tested against the code example from #271, #272 was not tested due to code misformatting.