Graphs (Excel or not)

From: Chris (CHRISSS)12 Feb 2015 19:11
To: ALL1 of 19
I've got two sets of data which I want to use on the same graph but not sure how to do it like I want. I can get one set working in Excel by using the scatter graph but I want the two sets on there.

The times are in milliseconds, both sets starting at different times and both received at slightly different times, so nothing matches up. How can I synchronise them on the graph?
From: koswix12 Feb 2015 20:32
To: Chris (CHRISSS) 2 of 19
Is the time of interest?
From: Chris (CHRISSS)12 Feb 2015 20:37
To: koswix 3 of 19
I'd like them to both be in sync, yes.
From: koswix12 Feb 2015 20:55
To: Chris (CHRISSS) 4 of 19
so you want event 1 in set 1 to graph at the same imaginary time point as event 1 set 2? Then just drop the time table and replace with an numeric index. Select that index as the x-axis data for each data set.
From: Chris (CHRISSS)12 Feb 2015 21:03
To: koswix 5 of 19
Not sure. Maybe yes or no.

So I have say
568,19
1568,19
2568,19.5
3568,20

and

1234,5
2234,5
3234,5

So I want both the temps to be using the same time scale and for the points to be in the correct places. I'm not sure if I'm making sense. I'm sure it's easy enough to do.

Also I can't guarantee the same number of samples from each set, if the signal drops, so want the times to still be correct if one set is missing data.
From: 99% of gargoyles look like (MR_BASTARD)12 Feb 2015 21:20
To: Chris (CHRISSS) 6 of 19
Since x>0, you could try a log scale.
From: Chris (CHRISSS)12 Feb 2015 21:26
To: 99% of gargoyles look like (MR_BASTARD) 7 of 19
What would a log scale do? I don't remember them too well from school apart from making a curving increasing line.

I've attached a drawing of what I want. I'm sure its simple.

X and Y are both the same scale on each set, I just want each point on the graph to correspond to the correct x/y value.
From: 99% of gargoyles look like (MR_BASTARD)12 Feb 2015 21:26
To: Chris (CHRISSS) 8 of 19
Oh, hang on, I think I just figured out your problem. It's not the scale so much as getting both sets of data onto the graph. Correct?

If that's the case, create a table with four columns. Time1, Temp1, Time2, Temp2. Create the scatter plot with Temp1 vs Time1. Then select the graph, right click, and 'select data set' (or something like that, I'm doing this from memory). In the dialogue box create a new data set and set the x to be the Time2 column/boxes, and y to be the matching temp.
From: 99% of gargoyles look like (MR_BASTARD)12 Feb 2015 21:26
To: Chris (CHRISSS) 9 of 19
I thought the problem was the scale. See ^
From: Chris (CHRISSS)12 Feb 2015 21:27
To: 99% of gargoyles look like (MR_BASTARD) 10 of 19
That's what I want, yeah. I'll give that a go, thanks.
From: Chris (CHRISSS)12 Feb 2015 21:29
To: 99% of gargoyles look like (MR_BASTARD) 11 of 19
That's perfect. Thank you. I knew there'd be a simple solution but couldn't work it out. Thanks :)
From: Peter (BOUGHTONP)12 Feb 2015 23:58
To: Chris (CHRISSS) 12 of 19
Another quick workaround for stuff like this would be doing two graphs and super-imposing in your graphics editor.

Obviously not ideal for ongoing changing stuff, but worth remembering you don't always to stick to a spreadsheet. Trend lines are a good example of something that can be a PITA to get right at times, but are easily drawn with vectors.

From: 99% of gargoyles look like (MR_BASTARD)13 Feb 2015 08:27
To: Peter (BOUGHTONP) 13 of 19

Trend lines are a good example of something that can be a PITA to get right at times, but are easily drawn with vectors.

Select data, right click, add trend line, select trend line that best fits the data. Gives you equation and R2 to boot. What's so difficult about that?

EDITED: 13 Feb 2015 08:27 by MR_BASTARD
From: koswix13 Feb 2015 09:18
To: Chris (CHRISSS) 14 of 19
Ah, right. Also thought it was the scale.
From: Chris (CHRISSS)13 Feb 2015 09:40
To: koswix 15 of 19
I don't think I explained it very well.
From: koswix13 Feb 2015 10:11
To: Chris (CHRISSS) 16 of 19
No, I don't think you did, Christopher :C

I also assumed that everyone knows you right click a plot area and choose select data to tell excel what to plot.
From: Chris (CHRISSS)13 Feb 2015 10:37
To: koswix 17 of 19
:( I've either been naughty or you're my grandmother.

Select data, not add more data. They should make it more obvious.
From: Peter (BOUGHTONP)14 Feb 2015 16:01
To: 99% of gargoyles look like (MR_BASTARD) 18 of 19
> select trend line that best fits the data

You either have significantly more options than I, or have only ever dealt with boring data.

EDITED: 14 Feb 2015 16:02 by BOUGHTONP
From: 99% of gargoyles look like (MR_BASTARD)14 Feb 2015 19:19
To: Peter (BOUGHTONP) 19 of 19
My Excel gives me exponential, linear, logarithmic, 5 orders of polynomial, power, and several orders of moving average (I've never figured the point of that). I'm sorry that your Excel is broken Paeter. I'm also sorry that your data are not as boring as mine. You live an exciting life.

What are your views on pizza Napoli?