better resolution and legends for figure saving