fix legend generation
Merge pull request #3 from mpfeil/fix-legend

fix legend generation