comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Tracking and plotting particle trajectories 3D
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Tracking and plotting particle trajectories 3D [message #82381 is a reply to message #82378] Fri, 07 December 2012 18:48 Go to previous messageGo to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
On Friday, December 7, 2012 2:32:06 PM UTC-5, abhi...@gmail.com wrote:
> Hi guys, I am working on a code to track and plot particle trajectories. I use a fortran code to create data for position of each particle on x, y and z axis. I use IDL to take in the data from the file and plot it. The problem is that the program connects a line from the end point of one trajectory to the beginning of the new trajectory. This creates a lot of mess and the plot is rendered un-informational. The reason the program is doing this is because the input file has trajectory points for each particle in order. So when one particle finishes its path, the input file gives data for the next particle which has just been generated. I do not want to use loops and slow the speed. Any ideas on how I can remove those connecting lines?

If it were me, I would use a FOR loop, selecting one particle trajectory at a time, and plotting it. If you want to get clever, you can do as David says and insert a NAN value at each breakpoint between trajectories. But you're basically going to need a FOR loop to do that anyway, so why bother.

Craig
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: How to correct errors an IDL
Next Topic: Re: Some IDL8.2.1 Workbench related problems

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 20:55:51 PDT 2025

Total time taken to generate the page: 0.56090 seconds