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 #82383 is a reply to message #82381] Fri, 07 December 2012 12:13 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
abhispace@gmail.com writes:

> 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?

I have an idea. First, identify them, then remove them!
Actually, it might be better to replace them. I'd try
replacing them with NaNs. That might work, although you
don't give us a clue what command you are using to draw
them.

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[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 01:04:50 PDT 2025

Total time taken to generate the page: 0.48233 seconds