DPlot Forum Index DPlot
http://www.dplot.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Step functions

 
Post new topic   Reply to topic    DPlot Forum Index -> Suggestions/Questions
View previous topic :: View next topic  
Author Message
aesculap



Joined: 13 May 2009
Posts: 15

PostPosted: Wed May 13, 2009 1:45 am    Post subject: Step functions Reply with quote

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.
Back to top
View user's profile Send private message
DPlotAdmin
Site Admin


Joined: 24 Jun 2003
Posts: 2310
Location: Vicksburg, Mississippi

PostPosted: Wed May 13, 2009 8:07 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Send e-mail Visit poster's website
DPlotAdmin
Site Admin


Joined: 24 Jun 2003
Posts: 2310
Location: Vicksburg, Mississippi

PostPosted: Wed May 13, 2009 5:35 pm    Post subject: Reply with quote

...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 Smile
_________________
Visualize Your Data
support@dplot.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
aesculap



Joined: 13 May 2009
Posts: 15

PostPosted: Thu May 14, 2009 5:46 am    Post subject: Reply with quote

Thank you for your quick and beneficial replies!

Your plugin works just fine. Basically all my data is sort of step-data so im fine with status quo - a dialog box to pick the curves is "nice to have".
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    DPlot Forum Index -> Suggestions/Questions All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group