Legends/plots became wrongly assigned when legend string was empty: drawLine did not "forget plot", but no legend entry was added