Re: v8.1 Workbench Path problem? [message #77106 is a reply to message #77009] |
Wed, 27 July 2011 11:33   |
penteado
Messages: 866 Registered: February 2018
|
Senior Member Administrator |
|
|
On Jul 27, 2: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.
Or, if that was David's colorbar.pro that was intended, use
fsc_colorbar instead, which is just a new name, to avoid that problem.
|
|
|