Masking graphs and legends