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 

Curve display animation

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



Joined: 13 Oct 2009
Posts: 24
Location: Houston, TX

PostPosted: Fri Jun 24, 2011 1:17 am    Post subject: Curve display animation Reply with quote

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


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

PostPosted: Fri Jun 24, 2011 12:07 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
omoeko



Joined: 13 Oct 2009
Posts: 24
Location: Houston, TX

PostPosted: Fri Jun 24, 2011 12:15 pm    Post subject: Reply with quote

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


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

PostPosted: Fri Jun 24, 2011 4:32 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
omoeko



Joined: 13 Oct 2009
Posts: 24
Location: Houston, TX

PostPosted: Sun Jun 26, 2011 8:04 pm    Post subject: Reply with quote

Thanks a lot. Works well as expected.
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