10-10-2020 04:59 AM
You are making a lot of mistakes and unnecessary complications. x0 & dx of an xy graph should always be 0 & 1, else you introduce another multiplier and offset. If you set the time axis to relative formatting, don't give it an absolute time.
In the attached modification, I do linear interpolation for x0=xmin and dx=1.
To add or subtract 5 you can just use scalars. No need to create all these arrays.
In the lower graphs, dx=5 (for the waveform graph), so they are equally spaced. No interpolation needed.
10-10-2020 10:40 PM
It works that is my want, thanks!!