X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 11 Aug 2014 06:22 PM by  anon
Attempt to call undefined procedure/function: 'LEGEND'
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
11 Aug 2014 06:22 PM
    Hi, I'm using IDL 8.3 to plot. Everything is good but legend function fails. The example is like this, IDL> theory = SIN(2.0*FINDGEN(201)*!PI/25.0)*EXP(-0.02*FINDGEN(201)) IDL> observed = theory + RANDOMU(seed,201)*0.4-0.2 IDL> plot1 = PLOT(observed, 'b2', NAME='Observed') % Loaded DLM: PNG. IDL> plot2 = PLOT(theory, /OVERPLOT, 'r2', NAME='Theory') IDL> leg = LEGEND(TARGET=[plot1,plot2], POSITION=[185,0.9], $ IDL> /DATA, /AUTO_TEXT_COLOR) % Compiled module: LEGEND. % Attempt to call undefined procedure/function: 'LEGEND'. Any comment? Thanks, Haojie

    Deleted User



    New Member


    Posts:
    New Member


    --
    12 Aug 2014 12:00 AM
    Problems solved. Some lib which contains legend.pro pre-date the legend function introduced into idl > idl8.0. One just need prepend the IDL_PATH with the idl8.3 lib path.
    You are not authorized to post a reply.