Constructing scatter plots