Legend fix

Updated fix for https://github.com/jakevdp/mpld3/issues/48, this time working from the latest version.

Replaces previous PR: https://github.com/mpld3/mplexporter/pull/18