Only show legend for displayed lines