**Points on x-y plots**

can also be called:

Ordered pairs(Cartesian) coordinates

# How do I plot points on a graph?

*Plotting geologic data in x-y space*

## Why should I plot points?

In the geosciences, we deal with large volumes of data, both observational and measured. This may be in the form of climate data, rock chemistry, elevation measurements, seismic data, etc. We generally compile data into tables and when we want to know the relationship of one variable to another, one of the easiest ways to do that is to put that data on a plot. Take the table of data to the right. Just looking at it (you can click on the image to open a bigger version in a new window), can you tell what the general trend in CO_{2} values has been for the past 50 years? Has the trend changed in the past 10 years? How about the last 5 years of record? Does the data vary from month to month? Are there seasonal cycles? So many questions! And they can all be answered with a simple x-y plot.

_{2}data (table above) from January 2000-December 2006 plotted on a x-y graph showing trends and patterns.

Bivariate (x-y) graphs help us to visualize and categorize large volumes of data without having to sort through cumbersome data tables. Imagine having to look at the Mauna Loa table as pairs of data (each month for 48 years makes 576 pairs of data!) and trying to figure out the relationship of one variable to another! Or, even worse, a table that isn't organized by date or in numerical order...It's much easier to see on a graph that CO

_{2}has generally increased over the 7 years shown here. You can also see distinct seasonal changes where carbon dioxide is high in May and low in October when the data is plotted on a graph! The rate of change seems to be pretty constant over the time period shown here.

## Where is graphing used in the geosciences?

Geoscientists use graphs to illustrate all kinds of issues in the science. In introductory geoscience courses, you may be asked to plot data in conjunction with units that deal with:

- rock compositions
- topographic maps
- streams and floods
- and almost any topic that might be covered in your course

- groundwater
- geologic hazards
- glacial advance or retreat
- climate and climate change
- deserts and dune migration
- geologic time and radioactive decay
- earthquakes and seismic data
- plate tectonics

## Simple rules for plotting points

Any plot or graph that has two axes is an x-y (or bivariate) plot. One axis (generally, the horizontal one) is the "x-axis" and the other (the vertical one) is considered the "y-axis". But, you can use any variable for either one, all you need is a data set that has two sets of related data. Below there is an example of a set of data points for how basalt melting temperatures change deeper in the Earth.

*Applications and Investigations in Earth Science, 6th edition,.*

When we plot data on a graph, there are several steps that you can follow to make sure that you don't forget anything:

- Make sure that you have two variables to work with (two
*columns*of data). In the case of the table above, the two variables are depth (km) and basalt melting temperature (°C). - Decide which of the variable is going to be represented on the x-axis and which will be on the y-axis. In some cases, you will be provided with a graph that has the axes labeled.
A general rule of thumb (and one that many spreadsheet and graphing programs use) is that numbers in the first column of a table will on the x-axis. However, geologists do not always follow this rule, so make sure you check.

**You can download and print a copy of this blank sheet of paper (click here). (Acrobat (PDF) 105kB Aug13 08)** - Label the axes on your plot and determine the appropriate scale (if the graph is not already labeled).
- Begin by plotting the first two pairs of numbers (the top
*row*of numbers).In the case of the basalt melting temperatures, the first two numbers are (0, 1100). In other words, we are going to plot a point at x=0, y=1100. How do we decide where to put a point? Follow these simple steps:- First, find the value for
*x*on the x-axis. In the case of basalt melting temperatures, x = 0; so, find 0 on the x axis. - Next, find the y-value - in this case, y=1100, so find 1100 on the y-axis.
- Your point should be plotted at the intersection of x=0 and y=1100. (If you draw one line up vertically up from x=0 and another line horizontally from y=1100, where they cross is where you should put your point!
- Finally, plot the point on your graph at the appropriate spot.

- First, find the value for
- Continue to plot pairs of points from the table (in
*rows*) until you have plotted all the points. - Your final graph should have the same number of points as pairs of data in your table.

You can download and print a

**sheet with the steps on it here (Acrobat (PDF) 35kB Sep10 08).**

## Some practice problems

When you are comfortable with the steps shown above, you can move on to the **plotting points sample problems,** which have worked answers.