Fix MatplotlibDeprecationWarning: The "loc" positional argument to legend is deprecated
Merge pull request #3310 from cgohlke/patch-6

Fix MatplotlibDeprecationWarning: The "loc" positional argument to legend is deprecated