show a legend for graphs with more than one line