Pick up legend information from plots.