Re: v8.1 Workbench Path problem? [message #77107 is a reply to message #77009] |
Wed, 27 July 2011 10:40   |
BLesht
Messages: 89 Registered: March 2007
|
Member |
|
|
On Jul 27, 12:32 pm, Michael Galloy <mgal...@gmail.com> wrote:
> On 7/27/11 11:09 AM, Barry Lesht wrote:
>
>
>
>> I have a simple code that includes the following line:
>
>> COLORBAR, Position=[0.85, 0.50, 0.87, 0.95], $
>> Range=[0.0, cmax], NColors=nLevels, /Vertical, $
>> Format = '(f3.1)', CharSize = char_size, /Right,
>> Title=variable
>
>> When I run the code in the development environment I get the following
>> error:
>
>> % Compiled module: COLORBAR.
>> % Attempt to call undefined procedure/function: 'COLORBAR'.
>> % Execution halted at: GLSEA2_TEST 443 /glsea2_test.pro
>> % $MAIN$
>
>> IDL> print, file_which('colorbar.pro')
>> /Applications/itt/idl/idl81/lib/graphics/colorbar.pro
>
>> I've tried fiddling with the path using the preferences menu.
>> Currently it is set to the default.
>
>> I'm not sure what is happening. Can someone point me in the right
>> direction please? Thanks.
>
> IDL is finding the new graphics COLORBAR function (in the default path),
> but you actually want to call a third-party COLORBAR procedure. To fix,
> add the path to the third-party COLORBAR procedure to your IDL_PATH
> *before* the <IDL_DEFAULT> path in your preferences.
>
> Mike
> --
> Michael Galloywww.michaelgalloy.com
> Modern IDL, A Guide to Learning IDL:http://modernidl.idldev.com
> Research Mathematician
> Tech-X Corporation
Thank you, Mike. I'm sure that is the problem. Barry
|
|
|