Straight Line Graph Plotting Tool

This is a simple tool for plotting a straight line graph.Your plot will always appear on a new tab. This makes it easy to come back to this page, change something and resubmit for a new graph.

x axis label (include units):
y axis label (include units):

Check this box if the fit should be constrained to go through (0,0).
(Don't include (0,0) in your list of points below, it will mess up the fit.)

What kind of errors are you entering for your data? 

Specify the range of your plot (or leave blank for autorange)
xmin:   xmax:
ymin:   ymax:

If you would like to receive the generated plot as an email attachment please check this box ,
enter your email address: ,
and a subject to identify your plot .

(It's a good idea to check the plot first in the browser and then email it only once your are happy with it by resubmitting this form with the box checked.)

Enter your data below. Click on submit when you're done.

x1:   +/-    y1:   +/-
x2:   +/-    y2:   +/-
x3:   +/-    y3:   +/-
x4:   +/-    y4:   +/-
x5:   +/-    y5:   +/-
x6:   +/-    y6:   +/-
x7:   +/-    y7:   +/-
x8:   +/-    y8:   +/-
x9:   +/-    y9:   +/-
x10: +/-    y10: +/-
x11: +/-    y11: +/-
x12: +/-    y12: +/-
x13: +/-    y13: +/-
x14: +/-    y14: +/-
x15: +/-    y15: +/-
x16: +/-    y16: +/-

How it works

A php script takes the inputs you enter and formats it into instructions which are fed to Gnuplot to produce your plot. Gnuplot is a free and powerful plotting program and can do quite a lot more than we're using it for here. You might like to check it out if you're interested in this kind of thing. Other plotting programs commonly used by physicists include Microcal Origin (powerful but expensive) or Microsoft Excel (not the best, but on just about every computer in the world).

What's the fit doing?

When the computer makes a fit it is using a technique called linear regression using a least squares approach. The computer tries to find the line where the sum of the squares of the differences between the line and the data points is the smallest and calls this the line of best fit.

phy123on/plotting_tool.txt · Last modified: 2015/09/24 17:52 by mdawber
CC Attribution-Noncommercial-Share Alike 3.0 Unported Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0