legend to graphs