moving legend on figures