cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

Weird reverse

Raiko
16-Pearl

Weird reverse

Hello folks,

I do still have an unexpected result from the reverse function although it works as expected in some instances; see attached sheet.

When creating an array and reversing the order of the second column then one sees in the graph the reversed function. I.e. last values being depicted first.

However, when I do the same on some measurement data, all I get is the weird looking curve in the left graph.

Does anybody have an explanation? Mike perhaps?

Raiko

1 ACCEPTED SOLUTION

Accepted Solutions

Mike Armstrong wrote:

Well put Werner, better explanation than I managed

We can see the effect better if we thin out the data to, lets say just 100 data points.

View solution in original post

11 REPLIES 11
MikeArmstrong
5-Regular Member
(To:Raiko)

It seems to me that your graphs are plotting from right to left?

When you reverse the data the extreme values of rawdata<1> correspond to smaller values of rawdata<0>. To me the results are what I would expect.

Sorry Mike, I mixed up the zip files. Here we go with a new one.

What I don't understand is why the graph of the reversed measurement points is not the mirror image of the raw data as shown in the right hand graph.

Raiko

Werner_E
24-Ruby V
(To:Raiko)

Raiko,

I also expected a mirrored graph at first until I realized that this woul only happen if the abscissa values are equally spaced as they are in your test plot to the right.

But they aren't in your measurement data.

Here is a plot with your data thinned out to 100 points only. You can clearly see that we have just about half a dozen higher ordinate values. These are stretched out to the right in the nonreversed plot but crashed together to the left in the reversed one.

To get a mirrored plot you can either manually reverse the limits on the abscissa axis as Mike had done or you create a new vector for the absicissa with 150-data<0> where 150 is the maximum of data<0>.

Embedding pictures does not fork for me at the moment (this happens ever so often here) so I attach them.

MikeArmstrong
5-Regular Member
(To:Raiko)

Are you looking for something like this?

Mike,

you don't change anything if you reverse both vectors.

You have changed the limits on the absicissa manually and if you do that in the original plot you get the same efect 😉

MikeArmstrong
5-Regular Member
(To:Werner_E)

Werner Exinger wrote:

Mike,

you don't change anything if you reverse both vectors.

You have changed the limits on the absicissa manually and if you do that in the original plot you get the same efect 😉

Oops yes. The graphs are working correctly IMO.

Werner_E
24-Ruby V
(To:Raiko)

I agree with Mike - its all OK.

The puzzling effect occurs because the values on the abscissa are not equally spaced.

If you reverse one of the columns, the higher ordinate values get related to very narrow spaced abscissa values which looks like a spike.

MikeArmstrong
5-Regular Member
(To:Werner_E)

Well put Werner, better explanation than I managed

Mike Armstrong wrote:

Well put Werner, better explanation than I managed

We can see the effect better if we thin out the data to, lets say just 100 data points.

Raiko
16-Pearl
(To:Raiko)

Mike, Werner

thank you very much for your effort. It is really in the data (no pun intended)

Raiko

MikeArmstrong
5-Regular Member
(To:Raiko)

RaikoRaiko Milanovic wrote:

Mike, Werner

thank you very much for your effort. It is really in the data (no pun intended)

Raiko

Hahahahah

Top Tags