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

Home » Public Forums » archive » problem with plot
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: problem with plot [message #56763 is a reply to message #56684] Tue, 13 November 2007 09:01 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Allan Whiteford writes:

> I'd prefer:
>
> pro test
> plot,((_=read_ascii("F:\test.txt"))).(0)[0,*],_.(0)[1,*]
> end
>
> but I'm not paid by the number of lines of code I write :).
>
> In all seriousness, though, is there a reason to avoid read_ascii for
> things like this or were you just trying to use as much of the original
> structure as possible?

I was really trying to use this as a teachable moment for
the "IDL Way". :-)

READ_ASCII is great if you have 10 or 100 rows of data.
It is slow, slow, slow if you have a LOT of rows. This is
because it, by necessity, has to use the line by line
data reading method.

Plus, it so damn inelegant (IMHO) I've never used it, so
I just never think about it as a solution. :-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: capital letters in file names?
Next Topic: Multi-plot error. Could anyone help me?

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

Current Time: Sat Oct 18 01:34:45 PDT 2025

Total time taken to generate the page: 0.07600 seconds