Skip to main content
1-Visitor
April 20, 2018
Solved

Repeating data plot

  • April 20, 2018
  • 2 replies
  • 6446 views

how to plot repeated value ?

Eg:

for example i want to plot sin wave, i have values for 0-90 degree and i want to plot for 90-180 degree by reversing same data and so on till 360 degree or (0 to 2pi).

 

In the 1st graph, AA=[0,0.99,0.98,0.97,...1],size of AA is 20and i'm just repeating by modifying same data "AA" 

 math2.pngmath.png

Best answer by terryhendicott

Hi,

I think? the function you are looking for is "stack".  Doing this you loose the four colours.

I have generated AA from Sin as I am not retying your AA by hand.

 

Cheers

Terry

2 replies

23-Emerald IV
April 20, 2018

Like this:

LM_20180420_Plot.png

Success!
Luc

1-Visitor
April 20, 2018

No, i don't want to use sin function ("sin") without using "sin" but using set of values like "AA" only,

 

Note: only values of "AA" and i want to do all the operations on programming it self not on graph,

 

Ex:

 

math4.png math3.png

21-Topaz II
April 20, 2018

Hi,

 

Like this then?

 

Cheers

Terry

25-Diamond I
April 20, 2018

Not sure what you a really trying to do. Maybe the following can help.

Your approach seems to ignore the obvious phase shift seen in what you call "original signal".

Other approaches which come to mind are Fourier transform or maybe even a fit with a sine (you may use genfit for doing so).

B1.png