View previous topic :: View next topic |
Author |
Message |
omoeko
Joined: 13 Oct 2009 Posts: 24 Location: Houston, TX
|
Posted: Fri Jun 24, 2011 1:17 am Post subject: Curve display animation |
|
|
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 |
|
Back to top |
|
|
DPlotAdmin Site Admin
Joined: 24 Jun 2003 Posts: 2310 Location: Vicksburg, Mississippi
|
Posted: Fri Jun 24, 2011 12:07 pm Post subject: |
|
|
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 |
|
Back to top |
|
|
omoeko
Joined: 13 Oct 2009 Posts: 24 Location: Houston, TX
|
Posted: Fri Jun 24, 2011 12:15 pm Post subject: |
|
|
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 |
|
Back to top |
|
|
DPlotAdmin Site Admin
Joined: 24 Jun 2003 Posts: 2310 Location: Vicksburg, Mississippi
|
Posted: Fri Jun 24, 2011 4:32 pm Post subject: |
|
|
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: | 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 |
|
Back to top |
|
|
omoeko
Joined: 13 Oct 2009 Posts: 24 Location: Houston, TX
|
Posted: Sun Jun 26, 2011 8:04 pm Post subject: |
|
|
Thanks a lot. Works well as expected. |
|
Back to top |
|
|
|