Extracting data from an image of plots