improve legends in histograms

4 jobs for hist in 54 minutes and 58 seconds (queued for 5 seconds)