changed how legend is written for precision and recall plot