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

Home » Public Forums » archive » Question: plots not working
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Question: plots not working [message #86564] Tue, 19 November 2013 17:40 Go to next message
Simcha Levental is currently offline  Simcha Levental
Messages: 2
Registered: November 2013
Junior Member
I am hoping someone can help me; understand why I am not able to get plots from IDL. I keep getting
"% Incorrect number of arguments.
% Execution halted at: $MAIN$ "
Thanks,
s

IDL> cd, 'C:\Users\slevental\Documents\IDL_coursefiles'
IDL> file1 = filepath('chirp.dat', subdir=['examples', 'data'])
IDL> chirp= read_binary(file1, data_dims=512, data_type=1)
IDL> help, (chirp)
CHIRP BYTE = Array[512]
IDL> file2= file_which('marbells.dat')
% Compiled module: FILE_WHICH.
IDL> restore, file2
IDL> help, elev
ELEV INT = Array[350, 450]
IDL> p = plot(chirp)
% Compiled module: COLORBAR__DEFINE.
% Incorrect number of arguments.
% Execution halted at: $MAIN$


Theoretically, I should be getting
% Compiled module: FILE_WHICH.
and the graphic widow should appear...
Re: Question: plots not working [message #86566 is a reply to message #86564] Tue, 19 November 2013 20:22 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Simcha Levental writes:

> I am hoping someone can help me; understand why I am not able to get plots from IDL. I keep getting
> "% Incorrect number of arguments.
> % Execution halted at: $MAIN$ "
> Thanks,
> s
>
> IDL> cd, 'C:\Users\slevental\Documents\IDL_coursefiles'
> IDL> file1 = filepath('chirp.dat', subdir=['examples', 'data'])
> IDL> chirp= read_binary(file1, data_dims=512, data_type=1)
> IDL> help, (chirp)
> CHIRP BYTE = Array[512]
> IDL> file2= file_which('marbells.dat')
> % Compiled module: FILE_WHICH.
> IDL> restore, file2
> IDL> help, elev
> ELEV INT = Array[350, 450]
> IDL> p = plot(chirp)
> % Compiled module: COLORBAR__DEFINE.
> % Incorrect number of arguments.
> % Execution halted at: $MAIN$
>
>
> Theoretically, I should be getting
> % Compiled module: FILE_WHICH.
> and the graphic widow should appear...

Try typing .Reset, then execute these commands again. I think you will
have better luck the second time. :-)

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.")
Re: Question: plots not working [message #86593 is a reply to message #86566] Thu, 21 November 2013 15:44 Go to previous message
Simcha Levental is currently offline  Simcha Levental
Messages: 2
Registered: November 2013
Junior Member
Thanks. Though I discovered that it was a version error.

On Tuesday, November 19, 2013 9:22:28 PM UTC-7, David Fanning wrote:
> Simcha Levental writes:
>
>
>
>> I am hoping someone can help me; understand why I am not able to get plots from IDL. I keep getting
>
>> "% Incorrect number of arguments.
>
>> % Execution halted at: $MAIN$ "
>
>> Thanks,
>
>> s
>
>>
>
>> IDL> cd, 'C:\Users\slevental\Documents\IDL_coursefiles'
>
>> IDL> file1 = filepath('chirp.dat', subdir=['examples', 'data'])
>
>> IDL> chirp= read_binary(file1, data_dims=512, data_type=1)
>
>> IDL> help, (chirp)
>
>> CHIRP BYTE = Array[512]
>
>> IDL> file2= file_which('marbells.dat')
>
>> % Compiled module: FILE_WHICH.
>
>> IDL> restore, file2
>
>> IDL> help, elev
>
>> ELEV INT = Array[350, 450]
>
>> IDL> p = plot(chirp)
>
>> % Compiled module: COLORBAR__DEFINE.
>
>> % Incorrect number of arguments.
>
>> % Execution halted at: $MAIN$
>
>>
>
>>
>
>> Theoretically, I should be getting
>
>> % Compiled module: FILE_WHICH.
>
>> and the graphic widow should appear...
>
>
>
> Try typing .Reset, then execute these commands again. I think you will
>
> have better luck the second time. :-)
>
>
>
> 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.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: How to create 4D data matrix from 1D arrays?
Next Topic: How to find (where) the first non NAN value in an array?

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

Current Time: Wed Oct 08 09:18:31 PDT 2025

Total time taken to generate the page: 0.00606 seconds