adding labels to graphs