Re: Coyote graphics and GDL 0.9.2 (problem) [message #79661] |
Sun, 25 March 2012 03:35 |
Armando B.
Messages: 2 Registered: March 2012
|
Junior Member |
|
|
>>
>> ENDIF ELSE Erase, thisColor
>>
Thanks for your answers! Now my "cgPlot" command works fine!
But all principal commands have many incompatibility-errors...
for example: cgOplot, cgSurface, cgLoadct...and more..
I will study all the differences of string-interpretation between GDL and IDL to fix most of *.pro files :-)
|
|
|
Re: Coyote graphics and GDL 0.9.2 (problem) [message #79664 is a reply to message #79661] |
Sat, 24 March 2012 16:58  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
David Fanning writes:
>
> Armando B. writes:
>
>> does GDL-0.9.2 support Coyote IDL libraries?
>>
>> When I type for example:
>>
>> GDL> cgplot,indgen(10)
>>
>> terminal reports me this error:
>>
>> Compiled module: CGPLOT.
>> % CATCH: feature not implemented yet (FIXME!).
>> % Compiled module: SETDECOMPOSEDSTATE.
>> % Compiled module: DECOMPOSEDCOLOR.
>> % Compiled module: CGDEFAULTCOLOR.
>> % Compiled module: COLORSAREIDENTICAL.
>> % Compiled module: CGDEFCHARSIZE.
>> % Compiled module: CGDISPLAY.
>> % Compiled module: CGQUERY.
>> % Compiled module: CGERASE.
>> % Compiled module: CGCOLOR.
>> % Compiled module: STRSPLIT.
>> % Compiled module: UNIQ.
>> % Compiled module: CGSNAPSHOT.
>> % ERASE: Keyword parameters not allowed in call.
>> % Execution halted at: CGERASE 164 /home/nando/gdl 0.9.2/src/pro/coyote/cgerase.pro
>> % CGDISPLAY 226 /home/nando/gdl-0.9.2/src/pro/coyote/cgdisplay.pro
>> % CGPLOT 567 /home/nando/gdl-0.9.2/src/pro/coyote/cgplot.pro
>> % $MAIN$
>>
>> What's wrong?
>
> On line 164 of cgErase, you can try changing the ERASE
> command on the line from this:
>
> ENDIF ELSE Erase, Color=thisColor
>
> To this:
>
> ENDIF ELSE Erase, thisColor
>
> That might work better in your version of IDL. :-)
I just did a quick search for "ERASE, COLOR=" and changed
all the ones I found. This should make things easier for
GDL users. Update probably available early tomorrow.
Let me know if there is anything else like this that is
easily changed.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
Re: Coyote graphics and GDL 0.9.2 (problem) [message #79665 is a reply to message #79664] |
Sat, 24 March 2012 16:49  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Armando B. writes:
> does GDL-0.9.2 support Coyote IDL libraries?
>
> When I type for example:
>
> GDL> cgplot,indgen(10)
>
> terminal reports me this error:
>
> Compiled module: CGPLOT.
> % CATCH: feature not implemented yet (FIXME!).
> % Compiled module: SETDECOMPOSEDSTATE.
> % Compiled module: DECOMPOSEDCOLOR.
> % Compiled module: CGDEFAULTCOLOR.
> % Compiled module: COLORSAREIDENTICAL.
> % Compiled module: CGDEFCHARSIZE.
> % Compiled module: CGDISPLAY.
> % Compiled module: CGQUERY.
> % Compiled module: CGERASE.
> % Compiled module: CGCOLOR.
> % Compiled module: STRSPLIT.
> % Compiled module: UNIQ.
> % Compiled module: CGSNAPSHOT.
> % ERASE: Keyword parameters not allowed in call.
> % Execution halted at: CGERASE 164 /home/nando/gdl 0.9.2/src/pro/coyote/cgerase.pro
> % CGDISPLAY 226 /home/nando/gdl-0.9.2/src/pro/coyote/cgdisplay.pro
> % CGPLOT 567 /home/nando/gdl-0.9.2/src/pro/coyote/cgplot.pro
> % $MAIN$
>
> What's wrong?
On line 164 of cgErase, you can try changing the ERASE
command on the line from this:
ENDIF ELSE Erase, Color=thisColor
To this:
ENDIF ELSE Erase, thisColor
That might work better in your version of IDL. :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
Re: Coyote graphics and GDL 0.9.2 (problem) [message #79666 is a reply to message #79665] |
Sat, 24 March 2012 16:30  |
wlandsman
Messages: 743 Registered: June 2000
|
Senior Member |
|
|
On Saturday, March 24, 2012 6:49:07 PM UTC-4, Armando B. wrote:
> Hello,
>
> does GDL-0.9.2 support Coyote IDL libraries?
>
The short answer is not completely. GDL doesn't yet support CATCH for example.
However, some of the incompatibilities are easily fixable.
Line 164 of cgerase.pro has the call
ERASE, Color=thisColor
and the Color keyword is not yet implemented in GDL. However, GDL does recognize the Color (background) value when supplied as a parameter. So, change the line above to
ERASE, thiscolor
and you will see your plot. --Wayne
|
|
|