Create legend.txt