DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

step plot

How can I change the plot style to a step plot? i.e. a value persists at a given value until the next data point changes it

In Excel you would do this by turning off the actual plot line and making error bars visible. The error bars would be calculated as the difference between the times and the values. The only other way that I can think of is to add a new reading between every data point. This would be like (x1, y1), (x2, y1), (x2, y2), etc. How can I achieve this?

Thanx,
Orlan
0 Kudos
Message 1 of 3
(3,785 Views)
Hello Orlan,

depends where you want to do this.
In the module Report, it can easily be done by changing the stile of the curve. From line to outlined bars.
If you are looking for a way to have the step diagrams in View, you will have to crate new channel containing an interpolation of your original data. This interpolation can be done in the module Analysis again. Choose the method linear mapping out of the second row of functions. It will ask you for an additional x- channel which the new curve will be referencing to. Use a channel you allready have or generate a new reference channel with an appropriate resolution. (You can use the generate data function of the Analysis module for that). Calculating the linear mapping, choose the mapping method stairs in the parameters.
Ingo Schumacher
Systems Engineering Manager CEERNational Instruments Germany
0 Kudos
Message 2 of 3
(3,779 Views)
Hey Ingo,
The REPORT method definitely worked, but it lacks the power of VIEW to look at the data and zoom and pan other plots in coordination easily. I can't find a way to interpolate my data easily, since it is noncontinuous sampling of DC with AC partial wave artifacts. I'm not doing Nyquist sampling and it never was a goal to go after information in the frequency domain or otherwise. But perhaps if I learn AUT some day I can come up with a crafty way to do it, or I could always use some other program (maybe the database engine) to help me generate data that will line plot similar to a step plot.

Thanx,
Orlan
0 Kudos
Message 3 of 3
(3,770 Views)