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

Home » Public Forums » archive » cgscatter2d.pro 'keyword parameters not allowed to call' error
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
cgscatter2d.pro 'keyword parameters not allowed to call' error [message #91594] Tue, 04 August 2015 14:02 Go to next message
wdolan is currently offline  wdolan
Messages: 29
Registered: June 2015
Junior Member
So I'm trying to plot a scatterplot, with the best fit line, and r^2 values on it.

x=jacobian_pack(7,*); a double array [1,401]
y=btstruc.btresidual(*, rnscan(j)) ;a float array[401]

cgscatter2d, x, y, psym=1

and then the graph pops up, looking pretty good, except it doesn't have the best fit line or the r^2 value, and another window pops up saying:

"CGSCATTER2D----> Keyword parameters not allowed in call."

What am I doing wrong here? Do they both need to be float arrays, or should that not be an issue?

Thanks!
Re: cgscatter2d.pro 'keyword parameters not allowed to call' error [message #91595 is a reply to message #91594] Tue, 04 August 2015 14:10 Go to previous messageGo to next message
wdolan is currently offline  wdolan
Messages: 29
Registered: June 2015
Junior Member
I also just tried converting the y variable into double, and still got the same error. I've used cg functions before, and had no issues, so I think it is installed correctly.


On Tuesday, August 4, 2015 at 2:02:58 PM UTC-7, Wayana Dolan wrote:
> So I'm trying to plot a scatterplot, with the best fit line, and r^2 values on it.
>
> x=jacobian_pack(7,*); a double array [1,401]
> y=btstruc.btresidual(*, rnscan(j)) ;a float array[401]
>
> cgscatter2d, x, y, psym=1
>
> and then the graph pops up, looking pretty good, except it doesn't have the best fit line or the r^2 value, and another window pops up saying:
>
> "CGSCATTER2D----> Keyword parameters not allowed in call."
>
> What am I doing wrong here? Do they both need to be float arrays, or should that not be an issue?
>
> Thanks!
Re: cgscatter2d.pro 'keyword parameters not allowed to call' error [message #91597 is a reply to message #91595] Tue, 04 August 2015 18:14 Go to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
On Tuesday, August 4, 2015 at 5:10:12 PM UTC-4, Wayana Dolan wrote:

>> What am I doing wrong here? Do they both need to be float arrays, or should that not be an issue?

When you get the "Keyword parameters not allowed in call" it means that your setup is incorrect -- most likely because you have a an obsolete CG procedure in your !path (or in your current directory). You should get a traceback message along with the error, something like

Traceback Report from CGSCATTER2D:

% Keyword parameters not allowed in call.
% Execution halted at: CGSCATTER2D 501 /Users/wlandsma/pro/coyote/cgscatter2d.pro

which gives the line number where the error occurred. Look at that line to find the offending procedure being called.

Then follow step 4 of http://www.idlcoyote.com/code_tips/fixcoyoteprogram.php to find the obsolete procedure, e.g. to check on cgsetcolorstate.pro

IDL> print,file_which('cgsetcolorstate.pro')

(I actually prefer to use http://idlastro.gsfc.nasa.gov/ftp/pro/misc/findpro.pro which gives *all* versions of a procedure in one's !PATH -- with the first one being the one that is used, e.g.

IDL> findpro,'cgsetcolorstate' --Wayne
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Error opening NetCDF - file
Next Topic: LINFIT CHISQ and SIGMA values are correct??

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

Current Time: Wed Oct 08 07:16:28 PDT 2025

Total time taken to generate the page: 0.00445 seconds