12-18-2008 03:43 AM
Dear all,
I am writing a program where i want to add a shift to the Plot.
I have a Graph whose Time Axis is from 0 to 100.
I want the Graph to start displayng from point 1, i.e adding a shift of 1 to the plot.
Now next plot i want to display from point 2, i.e adding a shift of 2 to the plot.
How can i achieve this ?
Thanks,
Ritesh
12-18-2008 06:04 AM
Hi Ritesh,
you can add an array of "NaN" at the beginning of your array of values to shift it.
Mike
12-18-2008 06:28 AM - edited 12-18-2008 06:30 AM
using a Waveform graph you can manipulate the Xo , dX and the Y data
Xo is the initial x axis value which you are refering to as the Shift you want
dx is the displacement from point to point and finally the Y is the array of Data
this shown below in this example illustrating different approaches using Waveform graphs:
for example, the peice of code inside the blue box is telling us that the plot will start from x= 10 , with step 2 from element to element of the Y data