nschloe/matlab2tikz — pull request #276 by egeerardyn (2013-12-09 18:39:29+00:00)
Title: 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.