Limit number of lines shown in legend.