2017 j a hargreaves - mrsphysics.co.uk · j a hargreaves 3 do check that your gaph looks correct....

33
qwertyuiopasdfghjklzxcvbnmqwertyuiopasdf ghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmq wertyuiopasdfghjklzxcvbnmqwertyuiopasdfg hjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqw ertyuiopasdfghjklzxcvbnmqwertyuiopasdfghj klzxcvbnmqwertyuiopasdfghjklzxcvbnmqwer tyuiopasdfghjklzxcvbnmqwertyuiopasdfghjkl zxcvbnmqwertyuiopasdfghjklzxcvbnmqwerty uiopasdfghjklzxcvbnmqwertyuiopasdfghjklzx cvbnmqwertyuiopasdfghjklzxcvbnmqwertyui opasdfghjklzxcvbnmqwertyuiopasdfghjklzxcv bnmqwertyuiopasdfghjklzxcvbnmrtyuiopasdf Plotting Graphs in Excel For Use with Your Hooke’s Law Data 2017 J A HARGREAVES

Upload: others

Post on 12-Oct-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 2017 J A HARGREAVES - mrsphysics.co.uk · J A Hargreaves 3 Do check that your gaph looks correct. Sometimes Excel has a huff and produces nonsense. Usually you need to go back start

qwertyuiopasdfghjklzxcvbnmqwertyuiopasdf

ghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmq

wertyuiopasdfghjklzxcvbnmqwertyuiopasdfg

hjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqw

ertyuiopasdfghjklzxcvbnmqwertyuiopasdfghj

klzxcvbnmqwertyuiopasdfghjklzxcvbnmqwer

tyuiopasdfghjklzxcvbnmqwertyuiopasdfghjkl

zxcvbnmqwertyuiopasdfghjklzxcvbnmqwerty

uiopasdfghjklzxcvbnmqwertyuiopasdfghjklzx

cvbnmqwertyuiopasdfghjklzxcvbnmqwertyui

opasdfghjklzxcvbnmqwertyuiopasdfghjklzxcv

bnmqwertyuiopasdfghjklzxcvbnmrtyuiopasdf

Plotting Graphs in Excel

For Use with Your Hooke’s Law Data

2017

J A HARGREAVES

Page 2: 2017 J A HARGREAVES - mrsphysics.co.uk · J A Hargreaves 3 Do check that your gaph looks correct. Sometimes Excel has a huff and produces nonsense. Usually you need to go back start

Plotting Graphs in Excel

J A Hargreaves 1

USE OF EXCEL 2010 PHYSICS- A GRAPH OF HOOKE’S LAW

Insert data, or open up your

existing spreadsheet.

Click on Home

Page 3: 2017 J A HARGREAVES - mrsphysics.co.uk · J A Hargreaves 3 Do check that your gaph looks correct. Sometimes Excel has a huff and produces nonsense. Usually you need to go back start

Plotting Graphs in Excel

J A Hargreaves 2

First highlight the data that you want to plot. As these

are not next to each other you should click in the first

column and drag down the cells that you want to plot,

then holding down the CONTROL key repeat for the

other column. This involves the left mouse- try it!

Go to INSERT and then SCATTER graph. Plot the first

graph the dots without lines.

Page 4: 2017 J A HARGREAVES - mrsphysics.co.uk · J A Hargreaves 3 Do check that your gaph looks correct. Sometimes Excel has a huff and produces nonsense. Usually you need to go back start

Plotting Graphs in Excel

J A Hargreaves 3

Do check that your gaph looks correct. Sometimes Excel has a huff and produces nonsense. Usually you need to go back

start again and only highlight the data and not the headings! It doesn’t like blanks in cells, so don’t leave any!

The quick way to make a good graph is to

select the template within the DESIGN tab,

with a straighline and lots of gridlines. This

will almost give the graph we want which we

can just edit.

However, if you want to start from scratch see

the next slide and advanced section.

Page 5: 2017 J A HARGREAVES - mrsphysics.co.uk · J A Hargreaves 3 Do check that your gaph looks correct. Sometimes Excel has a huff and produces nonsense. Usually you need to go back start

Plotting Graphs in Excel

J A Hargreaves 4

You can then insert Chart and Axes

Titles and label axes with units.

Ensure the graph has been selected.

Click on Chart Tools – Layout.

Click on Legend – select none.

Page 6: 2017 J A HARGREAVES - mrsphysics.co.uk · J A Hargreaves 3 Do check that your gaph looks correct. Sometimes Excel has a huff and produces nonsense. Usually you need to go back start

Plotting Graphs in Excel

J A Hargreaves 5

We want to move the graph as it is too

small. Click on move chart within the

design menu and click move to a new

page and it will fill a whole A4 page.

You want to delete this “legend” as it is

taking up too much. Select this legend

and click delete

Page 7: 2017 J A HARGREAVES - mrsphysics.co.uk · J A Hargreaves 3 Do check that your gaph looks correct. Sometimes Excel has a huff and produces nonsense. Usually you need to go back start

Plotting Graphs in Excel

J A Hargreaves 6

Once you get the move chart option click

on “ new sheet” and give your graph a

name. In this case Hooke’s Law

Page 8: 2017 J A HARGREAVES - mrsphysics.co.uk · J A Hargreaves 3 Do check that your gaph looks correct. Sometimes Excel has a huff and produces nonsense. Usually you need to go back start

Plotting Graphs in Excel

J A Hargreaves 7

Click on the axes and give them names.

It ought to have a quantity and unit.

These are separated by a “\”

Page 9: 2017 J A HARGREAVES - mrsphysics.co.uk · J A Hargreaves 3 Do check that your gaph looks correct. Sometimes Excel has a huff and produces nonsense. Usually you need to go back start

Plotting Graphs in Excel

J A Hargreaves 8

Click on the axes and give them names. It ought

to have a quantity and unit. These are

separated by a “\” Titles can be added to this

box and click return when finished.

Page 10: 2017 J A HARGREAVES - mrsphysics.co.uk · J A Hargreaves 3 Do check that your gaph looks correct. Sometimes Excel has a huff and produces nonsense. Usually you need to go back start

Plotting Graphs in Excel

J A Hargreaves 9

We want small points or crosses not great blobs.

Click on the data points on your graph to highlight

them, then right click on the mouse until you get

a format data series menu. At the bottom. Click

on format data series and then change the marker

options from the built in menu to about 5 point

and + or x shape.

Page 11: 2017 J A HARGREAVES - mrsphysics.co.uk · J A Hargreaves 3 Do check that your gaph looks correct. Sometimes Excel has a huff and produces nonsense. Usually you need to go back start

Plotting Graphs in Excel

J A Hargreaves 10

Click on the Chart Title in the Layout menu and give

your graph a name. In this case it can be Hooke’s

Law, but generally for graphs you would give it the

title of

“A Graph of {Y axis} against {X- axis}” by {Name}

Page 12: 2017 J A HARGREAVES - mrsphysics.co.uk · J A Hargreaves 3 Do check that your gaph looks correct. Sometimes Excel has a huff and produces nonsense. Usually you need to go back start

Plotting Graphs in Excel

J A Hargreaves 11

Now we can format our axis and make

sure our scale is the best it can be.

Either right click on the axis or go to the

top menus. Set the scale to be as large

as possible with minimum gap at the top.

Page 13: 2017 J A HARGREAVES - mrsphysics.co.uk · J A Hargreaves 3 Do check that your gaph looks correct. Sometimes Excel has a huff and produces nonsense. Usually you need to go back start

Plotting Graphs in Excel

J A Hargreaves 12

A different way to get to the axes menu

Page 14: 2017 J A HARGREAVES - mrsphysics.co.uk · J A Hargreaves 3 Do check that your gaph looks correct. Sometimes Excel has a huff and produces nonsense. Usually you need to go back start

Plotting Graphs in Excel

J A Hargreaves 13

The axis menu. Fix the maximum and

minimum values. Make sure that the minor

units are multiples of the major unit. Or

your scale will be terrible! Try it you can

always change it!

Repeat for the other axis. You can use a

different scale –use what fits!

Page 15: 2017 J A HARGREAVES - mrsphysics.co.uk · J A Hargreaves 3 Do check that your gaph looks correct. Sometimes Excel has a huff and produces nonsense. Usually you need to go back start

Plotting Graphs in Excel

J A Hargreaves 14

These are the settings I used for the X-

axis.

Page 16: 2017 J A HARGREAVES - mrsphysics.co.uk · J A Hargreaves 3 Do check that your gaph looks correct. Sometimes Excel has a huff and produces nonsense. Usually you need to go back start

Plotting Graphs in Excel

J A Hargreaves 15

ADDITIONAL INFORMATION – ADVANCED GRAPHING & ALTERNATIVE METHODS

Use of Excel 2010 in AH Physics

Page 17: 2017 J A HARGREAVES - mrsphysics.co.uk · J A Hargreaves 3 Do check that your gaph looks correct. Sometimes Excel has a huff and produces nonsense. Usually you need to go back start

Plotting Graphs in Excel

J A Hargreaves 16

Insert data, including uncertainties.

Full stop in front of uncertainties stops “arith. operation”.

Click on Home

Page 18: 2017 J A HARGREAVES - mrsphysics.co.uk · J A Hargreaves 3 Do check that your gaph looks correct. Sometimes Excel has a huff and produces nonsense. Usually you need to go back start

Plotting Graphs in Excel

J A Hargreaves 17

Highlight data to be plotted.

Click on Insert, then select

“Scatter”

Page 19: 2017 J A HARGREAVES - mrsphysics.co.uk · J A Hargreaves 3 Do check that your gaph looks correct. Sometimes Excel has a huff and produces nonsense. Usually you need to go back start

Plotting Graphs in Excel

J A Hargreaves 18

You can then insert Chart and Axes

Titles and label axes with units.

Ensure the graph has been selected.

Click on Chart Tools – Layout.

Click on Legend – select none.

Page 20: 2017 J A HARGREAVES - mrsphysics.co.uk · J A Hargreaves 3 Do check that your gaph looks correct. Sometimes Excel has a huff and produces nonsense. Usually you need to go back start

Plotting Graphs in Excel

J A Hargreaves 19

Select Gridlines. Insert Major and

Minor Gridlines – horizontal and

vertical.

Again ensure the graph has been

selected.

Page 21: 2017 J A HARGREAVES - mrsphysics.co.uk · J A Hargreaves 3 Do check that your gaph looks correct. Sometimes Excel has a huff and produces nonsense. Usually you need to go back start

Plotting Graphs in Excel

J A Hargreaves 20

Click on Trendline

Select “More Trendline Options”.

Select “linear” if appropriate.

Page 22: 2017 J A HARGREAVES - mrsphysics.co.uk · J A Hargreaves 3 Do check that your gaph looks correct. Sometimes Excel has a huff and produces nonsense. Usually you need to go back start

Plotting Graphs in Excel

J A Hargreaves 21

Click on “Display

Equation on Chart”

Page 23: 2017 J A HARGREAVES - mrsphysics.co.uk · J A Hargreaves 3 Do check that your gaph looks correct. Sometimes Excel has a huff and produces nonsense. Usually you need to go back start

Plotting Graphs in Excel

J A Hargreaves 22

Custom Error Bars

Click on Error Bars –

select More Error Bars

Options

Page 24: 2017 J A HARGREAVES - mrsphysics.co.uk · J A Hargreaves 3 Do check that your gaph looks correct. Sometimes Excel has a huff and produces nonsense. Usually you need to go back start

Plotting Graphs in Excel

J A Hargreaves 23

Select Both

Click on

Custom and

then

Specify

Value

Page 25: 2017 J A HARGREAVES - mrsphysics.co.uk · J A Hargreaves 3 Do check that your gaph looks correct. Sometimes Excel has a huff and produces nonsense. Usually you need to go back start

Plotting Graphs in Excel

J A Hargreaves 24

Click and drag down column to insert

value of +Y in data box.

Repeat for Negative Error Value

Click Okay

Click to highlight

data insertion

box.

Page 26: 2017 J A HARGREAVES - mrsphysics.co.uk · J A Hargreaves 3 Do check that your gaph looks correct. Sometimes Excel has a huff and produces nonsense. Usually you need to go back start

Plotting Graphs in Excel

J A Hargreaves 25

To select horizontal error bars, click on any

horizontal error bar on the graph.

Page 27: 2017 J A HARGREAVES - mrsphysics.co.uk · J A Hargreaves 3 Do check that your gaph looks correct. Sometimes Excel has a huff and produces nonsense. Usually you need to go back start

Plotting Graphs in Excel

J A Hargreaves 26

This should now read “Horizontal Error

Bars”.

Repeat the procedure to enter

customised horizontal error bars.

Changes to Horizontal

Error Bars

Page 28: 2017 J A HARGREAVES - mrsphysics.co.uk · J A Hargreaves 3 Do check that your gaph looks correct. Sometimes Excel has a huff and produces nonsense. Usually you need to go back start

Plotting Graphs in Excel

J A Hargreaves 27

Click, Drag

down vertical

column to insert

data in box.

Click okay

Click to highlight

data insertion

box.

Page 29: 2017 J A HARGREAVES - mrsphysics.co.uk · J A Hargreaves 3 Do check that your gaph looks correct. Sometimes Excel has a huff and produces nonsense. Usually you need to go back start

Plotting Graphs in Excel

J A Hargreaves 28

To change dot size / shape. ( Use Format Data Series)

Doubleclick or right click just next to

one of the points.

Format Data Series should open.

If you get Format Trendline or Format

Error bar then you have clicked on the

line, point or error bar.

Select Marker Options.

Built in. Choose style and size

Page 30: 2017 J A HARGREAVES - mrsphysics.co.uk · J A Hargreaves 3 Do check that your gaph looks correct. Sometimes Excel has a huff and produces nonsense. Usually you need to go back start

Plotting Graphs in Excel

J A Hargreaves 29

Increase the size of the graph to at least half a page.

y = 1.255x - 0.29

0

2

4

6

8

10

12

14

0.0 2.0 4.0 6.0 8.0 10.0 12.0

Y / units

X / Units

Graph of Y vs X

Page 31: 2017 J A HARGREAVES - mrsphysics.co.uk · J A Hargreaves 3 Do check that your gaph looks correct. Sometimes Excel has a huff and produces nonsense. Usually you need to go back start

Plotting Graphs in Excel

J A Hargreaves 30

Uncertainty in Gradient, Intercept - Use of Linest

Highlight four cells.

Type in

=LINEST(B2:B6,A2:A6,TRUE,TRUE)

Y Range

of Cells

X Range

of Cells

Hold down Ctrl, Shift and press enter.

(CMD, Shift and enter on Apple computers).

Page 32: 2017 J A HARGREAVES - mrsphysics.co.uk · J A Hargreaves 3 Do check that your gaph looks correct. Sometimes Excel has a huff and produces nonsense. Usually you need to go back start

Plotting Graphs in Excel

J A Hargreaves 31

Page 33: 2017 J A HARGREAVES - mrsphysics.co.uk · J A Hargreaves 3 Do check that your gaph looks correct. Sometimes Excel has a huff and produces nonsense. Usually you need to go back start

Plotting Graphs in Excel

J A Hargreaves 32

Gradient

Uncertainty

in Gradient

Y Intercept

Uncertainty in

Y Intercept