Coyote graphics /WINDOW problem in 8.1? [message #78016] |
Fri, 21 October 2011 07:37  |
Avian
Messages: 24 Registered: October 2011
|
Junior Member |
|
|
Hey all,
I see all the messages about the problems with 8.1. I've seen a fair share of crashes and weirdness with graphics and 8.1, but I don't know if this is related.
When I try invoke David's cgwindow routine with /WINDOW in a cgplot call from the console, I get a dialog box that pops up that says:
FSC_CMDWINDOW::INIT--> Attempt to call undefined procedure/function: 'CENTERLB'
and in the console it reports:
screenSize = GetPrimaryScreenSize(/Exclude_Taskbar)
^
% Syntax error.
At: /Applications/itt/idl/idl81/astron/pro/coyote/centertlb.pro, Line 124
I'm using IDL 8.1 and MacOSX 10.7.2, with the latest xcode installed.
Thanks for any insight!
Davin
|
|
|
Re: Coyote graphics /WINDOW problem in 8.1? [message #78072 is a reply to message #78016] |
Mon, 24 October 2011 20:03  |
wlandsman
Messages: 743 Registered: June 2000
|
Senior Member |
|
|
On Monday, October 24, 2011 10:05:55 AM UTC-4, Avian wrote:
> That was odd - I downloaded coyote from the latest version of astrolib on the web.
A couple of comments:
(1) Only a small fraction of the Coyote routines are available on astrolib -- I only copy enough to keep the astrolib "self-contained". But I encourage users to get the complete Coyote library directly and to delete the coyote directory within astrolib. (I do try to keep the coyote routines within astrolib up to date by re-copying them whenever I update the astrolib tar file.)
(2) There was a problem for about 2 months earlier this year when the function getprimaryscreensize.pro (needed to compile centertlb.pro) was missing from the coyote directory within astrolib. That most likely explains your original symptoms.
--Wayne
|
|
|
Re: Coyote graphics /WINDOW problem in 8.1? [message #78085 is a reply to message #78016] |
Mon, 24 October 2011 07:05  |
Avian
Messages: 24 Registered: October 2011
|
Junior Member |
|
|
David,
The new code fixed the problem - fantastic, and thanks.
That was odd - I downloaded coyote from the latest version of astrolib on the web. I tried fixing the problem by downloading your newest "experimental" version that you've been working on, just to see if that fixed it as well - no dice.
Thanks again!
|
|
|
Re: Coyote graphics /WINDOW problem in 8.1? [message #78104 is a reply to message #78016] |
Fri, 21 October 2011 15:44  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Avian writes:
> I see all the messages about the problems with 8.1. I've seen a fair share of crashes and weirdness with graphics and 8.1, but I don't know if this is related.
>
> When I try invoke David's cgwindow routine with /WINDOW in a cgplot call from the console, I get a dialog box that pops up that says:
>
> FSC_CMDWINDOW::INIT--> Attempt to call undefined procedure/function: 'CENTERLB'
>
> and in the console it reports:
>
> screenSize = GetPrimaryScreenSize(/Exclude_Taskbar)
> ^
> % Syntax error.
> At: /Applications/itt/idl/idl81/astron/pro/coyote/centertlb.pro, Line 124
>
> I'm using IDL 8.1 and MacOSX 10.7.2, with the latest xcode installed.
>
> Thanks for any insight!
Are you sure it says CENTERLB? There is a routine called
CENTERTLB in that method. But I can find no CENTERLB in
my code. So, either the spelling of that routine somehow
got corrupted, or centertlb.pro is not in your IDL path.
I think those are the only two possibilities.
You could try downloading the latest file:
http://www.idlcoyote.com/programs/cgwindow.pro
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.")
|
|
|