Curve display animation

Have a suggestion for improving DPlot or a question about existing features? Let us know

Moderator: DPlotAdmin

Post Reply
omoeko
Posts: 24
Joined: Tue Oct 13, 2009 10:29 pm
Location: Houston, TX

Curve display animation

Post by omoeko »

Pls is there a way to animate the display of multiple curves? For example, I have 5 curves in a XY graph. I want to animate the display from curve 1 to 5 in order to show how the graph is changing. Just wondering if there is a way to do that. The Playback command under View menu does not do that for me.

Thanks a lot for your prompt and excellent customer service. Cheers
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post by DPlotAdmin »

None I can think of, at least not well. The only way to do this I can think of is single-stepping through a macro with a series of HideCurve/ShowCurve commands.
Visualize Your Data
support@dplot.com
omoeko
Posts: 24
Joined: Tue Oct 13, 2009 10:29 pm
Location: Houston, TX

Post by omoeko »

Thanks. I am not that familiar with DPLOT macro but will start trying my hands on it and hopefully come up with something that I can share. Cheers
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post by DPlotAdmin »

After thinking on this a bit it occurred to me that there is an undocumented macro command (Wait(milliseconds)) that would come in handy here. If the currently displayed graph has 5 curves, then this:

Code: Select all

HideCurve(-1)
Wait(1000)
HideCurve(1)
ShowCurve(2)
Wait(1000)
HideCurve(2)
ShowCurve(3)
Wait(1000)
HideCurve(3)
ShowCurve(4)
Wait(1000)
HideCurve(4)
ShowCurve(5)
will first hide all but curve 1, then at 1 second intervals hide the visible curve and make the next curve visible. "Wait" is undocumented because it uses the Windows API Sleep command, which is generally not a good idea and can lead to weird "I'm waiting on you", "NO, I'm waiting on YOU" situations. But in the above example it is safe.
Visualize Your Data
support@dplot.com
omoeko
Posts: 24
Joined: Tue Oct 13, 2009 10:29 pm
Location: Houston, TX

Post by omoeko »

Thanks a lot. Works well as expected.
Post Reply