Updated the histogram and scatter figures by adding legends.