Graph plotter help

When the Graph plotter starts, you will see the Edit data tab. Data can be entered, manipulated and saved in this view. The View graph tab is where the graphs are plotted.


1 Edit data tab
2 View graph tab
3 Calculator



1 Edit data tab

Data can be entered, manipulated and saved in this view. Initially, the data table shows columns A and B with column A containing a list of integers. You do not have to complete all of the rows in the table in order to plot a graph.

Edit tab

Figure 1 The Edit data view.



Working with the data table

To enter or edit the title, axis labels or units for the graph, click or tap on the appropriate box in the small table above the main data table. Text can be formatted using the bold, italic, subscript and superscript buttons. (To remove the formatting, click on the box and edit the text manually.) Greek letters and the thermodynamic standard symbol standard symbol are available from the symbols... drop-down list.

You may either enter a set of data into the table from scratch, or open an existing data set and make changes to it. The Load data button enables you to open stored data sets. To save a data set, use the Save data button. To clear the current data table, press the Clear data button.

To enter data into a table cell, click on the cell you wish to edit. Enter a value or modify an existing value using the keyboard.

To assist with data manipulation, there are a number of features available:



Importing tables

You can import data from other packages or text files by pressing the Import data button. The figures below show data imported from some selected and copied spreadsheet data cells.
Individual columns of data can also be imported using the column options button described above.

Example of importing data

Figure 2 Using the Import data function.

The advanced button options enable you to adjust your imported data before it is imported into the Graph plotter table.



Data separator

Data is imported into the graph plotter table as 'comma delimited'. Data pasted from different sources maybe separated by multiple tabs or spaces, so the Column separator can be used to convert your pasted data into the comma separated/delimited format.
Examples of typical pasted data and the result are shown below:


Example of pasted data

'tabbed' data from a spreadsheet: 'spaced' data from a text file:
Result

N.B. Data in the x-values column can be entered as in a date format (DD/MM/YYYY and DD/MM/YY).



Data format

Data can be entered into the table in decimal format or using 'E' notation. Lower-case and upper-case e are accepted. Examples of valid number inputs are 0.00475, .6019, 432.87, 5.6e9, 1e-5, 4.3E10. It is not possible to enter numbers in scientific notation of the type 3.65 × 10–9.



Assigning data to graph axes

When you are ready to plot the data, use the radio buttons to specify which column to use for the horizontal x-values. Use the checkboxes to specify which column or columns to plot on the vertical y-axis. Press View graph to plot the graph and view it. The graph will be shown.



2 View graph tab

If the plot was successful, you will see the data points plotted on the graph and the numbers on the axes. Figure 2 shows a smooth curve fitted to a dataset. A tangent is drawn by clicking or tapping on the curve. Note that Graph plotter may format large or small values in your data to give compact numbers on the axes. To do this, it puts powers of 10 in the axis label. For example, 200 m may appear as 2 on the axis with 102 m in the axis label.


Graph tab

Figure 3 An example graph, showing a smooth curve and tangent.



Graph display options
Settings customise: No line: return to the initial display with just the data points plotted.
Line of best fit: fit a linear least squares best-fit line to the data.
Line segments: draw straight line segments between each successive data point
Curved line: fit a smooth curve ('spline' curve) through the data
 
Capturing the graph as a screenshot image

The best way to capture a graph as an image file is by using a screen grabbing utility. Windows users may wish to use the 'Snipping Tool' which is either part of the operating system or can be downloaded. There are similar utilities available for Apple Macintosh computers. The resulting image can be inserted into a document or annotated with a graphics package. Make sure to save the data for the graph so that you may return to it later if necessary.



Statistical output

Straight line
On fitting a least squares best-fit line, you will see statistics for the line displayed in a box. The gradient and intercept are quoted, together with their associated uncertainties. Clicking or tapping on the graph will give you a readout of the x and y values at the current position. Keyboard users may enter a value in the box labelled 'x :' to achieve the same result.

You may also select an area of the graph by clicking and dragging to select particular points on the graph. You may also edit the numbers in the number boxes to fine adjust the dimensions of the green select area.
You can use the zoom functions and then re-adjust the selection area to further fine-tune the points used in the statistics calculations.

By checking 'only for selected points' the best fit line is calculated only using your selected points:


Curved line
The gradient (or slope) of a curved line at any point can be measured by clicking or tapping on the curve. The gradient at the chosen point appears in the box. Keyboard users may enter a value in the box labelled 'x :' to achieve the same result.



3 Calculator

The calculator enables you to carry out mathematical operations on a column of data from the table. A new column in the data table will be created when you have successfully performed a calculation. The results in each cell need to be in terms of an existing column or columns. Cell numbers are displayed to upto 15 decimal places and in a lighter color to indicate that they cannot be edited.

By way of example, to calculate a new column C by taking the natural logarithm of each column B value, press the 'ln' button followed by the button labelled 'B'. The text ln(B) is inserted into the input box. Press Calculate, and the new column C is created in the table with the calculated values.

Calculator window

Figure 4 The Calculator window.

The calculator operates in radians mode. Thus, to obtain cos 45°, you should enter cos(π/4).