Hide legend according to __legend_show