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
Curve display animation
Moderator: DPlotAdmin
- DPlotAdmin
- Posts: 2312
- Joined: Tue Jun 24, 2003 9:34 pm
- Location: Vicksburg, Mississippi
- Contact:
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
support@dplot.com
- DPlotAdmin
- Posts: 2312
- Joined: Tue Jun 24, 2003 9:34 pm
- Location: Vicksburg, Mississippi
- Contact:
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:
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.
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)
Visualize Your Data
support@dplot.com
support@dplot.com