Revise histogram and scatterplot functions.