Subplots with one common legend

This seems to have already been addressed in this post.