show/hide legend without replotting