mpld3 interactive legend test
Improve purity histograms legend and eps save