Page 1 of 1
shifting of plot window to the right
Posted: Tue Mar 15, 2005 12:21 pm
by Fastbeats4u
Hi,
I just wonder wether it is possible to change DPlots behavior in "shifting the plot window to the right when necessary". The way it is done in the demo is not very smooth... perhaps I just missed something in the doc.
Regards,
Thomas
________
Yamaha FJR1300 history
Posted: Tue Mar 15, 2005 2:35 pm
by DPlotAdmin
That behavior is hard-wired, but I could fairly easily add an option to change it. What did you have in mind?
Posted: Tue Mar 15, 2005 3:28 pm
by Fastbeats4u
Wow! That's a real cool support!
Hm, well I don't know exactly... I think that depends on how much work you want to put in that. Unfortunately I didn't do any graph/plot programming before - that's why I had a look at DPlot.
One possibility - which would be OK for me, but perhaps not for other - is to skip the whole shifting stuff and just start drawing the graph back at the beginning.
Another one would be to shift the graph without the axises in the way new values are added - so it would appear like a o-scope when it reaches the edge (that's my favorite one).
Nevertheless there are many, many other ways... what do you think is the best approach, it's your baby

Reagrds,
Thomas
________
Ford Sigma engine picture
Posted: Tue Mar 15, 2005 4:08 pm
by DPlotAdmin
One possibility - which would be OK for me, but perhaps not for other - is to skip the whole shifting stuff and just start drawing the graph back at the beginning.
Certainly easy enough to do, but also adds confusion about what exactly it is that the ManualScale command is supposed to do.
Another one would be to shift the graph without the axises in the way new values are added - so it would appear like a o-scope when it reaches the edge (that's my favorite one).
I can add an option to specify the amount the window is shifted. The closest I'll be able to come to the sort of display you're talking about is to use a fairly small shift value. The plot will
always start at a tick mark interval, though, and w/o changing that (which I'm reluctant to do for reasons that aren't related to this) the display will still be... jerkier? than what you're talking about. But it's worth taking a look at. I'll try to have something like this plugged into the next release.