Hello,
I was wondering how to display step-function-data correcty.
Maybe an option to the "Equal Intervals" - interpolation dialog could be added to do no interpolation at all; so the missing data values would be added (if only changes are logged) and the resulting curve would look much more like an step function.
Step functions
Moderator: DPlotAdmin
- DPlotAdmin
- Posts: 2312
- Joined: Tue Jun 24, 2003 9:34 pm
- Location: Vicksburg, Mississippi
- Contact:
I'll add a "Draw as step function" option (which won't require you to double the number of points.)
Visualize Your Data
support@dplot.com
support@dplot.com
- DPlotAdmin
- Posts: 2312
- Joined: Tue Jun 24, 2003 9:34 pm
- Location: Vicksburg, Mississippi
- Contact:
...which won't require you to double the number of points.
On the other hand, I can't imagine anybody wanting to draw a step plot with 100's of thousands of points (since you couldn't see the steps anyway) so memory considerations aren't all that important. Plus, using only the existing data to do this is easy enough to draw, but opens up a small can of worms for other operations (right-clicking on a curve, finding intersections, and other things I'm sure I haven't thought of).
So... I put together a plugin to replace your existing curve(s) with the stepped version(s). http://www.dplot.com/plugins/generate/stepplot.dll
Save that file to <dplot folder>\plugins\generate (if you used the default installation options that will be c:\Program Files\DPlot\plugins\generate). The next time you run DPlot you'll see "Make Step Plot" on the Generate menu. The plugin replaces all curves with the stepped version. If there's a demand for it I'll add a dialog box to pick and choose which curves you want to do this for. This plugin will work with any full version of DPlot, including the trial.
I'll most likely include this plugin with the next release, so if you have any suggestions for improvement... now would be a good time
On the other hand, I can't imagine anybody wanting to draw a step plot with 100's of thousands of points (since you couldn't see the steps anyway) so memory considerations aren't all that important. Plus, using only the existing data to do this is easy enough to draw, but opens up a small can of worms for other operations (right-clicking on a curve, finding intersections, and other things I'm sure I haven't thought of).
So... I put together a plugin to replace your existing curve(s) with the stepped version(s). http://www.dplot.com/plugins/generate/stepplot.dll
Save that file to <dplot folder>\plugins\generate (if you used the default installation options that will be c:\Program Files\DPlot\plugins\generate). The next time you run DPlot you'll see "Make Step Plot" on the Generate menu. The plugin replaces all curves with the stepped version. If there's a demand for it I'll add a dialog box to pick and choose which curves you want to do this for. This plugin will work with any full version of DPlot, including the trial.
I'll most likely include this plugin with the next release, so if you have any suggestions for improvement... now would be a good time

Visualize Your Data
support@dplot.com
support@dplot.com