comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » % Attempt to call undefined procedure/function: 'BARPLOT'.
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
% Attempt to call undefined procedure/function: 'BARPLOT'. [message #94318] Fri, 07 April 2017 15:38 Go to next message
nicole araneda is currently offline  nicole araneda
Messages: 1
Registered: April 2017
Junior Member
Hi, I need to do a 2 graphics in the same barplot, so I have this

TEMP08=[30, 34, 38, 47, 57, 67, 73, 71, 63, 52, 39, 33]
TEMP09=[28, 36, 42, 47, 55, 62, 70, 75, 66, 47, 44, 32]
months=[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]

b1 = BARPLOT(months, TEMP08, index=0, NBARS=2, FILL_COLOR='gold', $
YRANGE=[0, 80], YMINOR=0, YTITLE='Temperature Fahrenheit', $ XTITLE='Months', TITLE='Average Monthly Temperature')

b2 = BARPLOT(months, TEMP09, INDEX=1, NBARS=2, FILL_COLOR='blue',/OVERPLOT)

end

(is the same example of the page http://www.harrisgeospatial.com/docs/barplots.html, I tested it first)

and the errors are:
----------------------------
b2 = BARPLOT(months, TEMP09, INDEX=1, NBARS=2, FILL_COLOR='blue',/OVERPLOT)
^
% Syntax error.
----------------------------
% End of file encountered before end of program.
----------------------------

also, I have this


----------------------------
% Attempt to call undefined procedure/function: 'BARPLOT'.
----------------------------

I tried the procedure of this page

http://www.harrisgeospatial.com/Support/HelpArticlesDetail/T abId/219/ArtMID/900/ArticleID/4326/4326.aspx

but it was not the solution.

Please, help!
Re: % Attempt to call undefined procedure/function: 'BARPLOT'. [message #94319 is a reply to message #94318] Fri, 07 April 2017 15:54 Go to previous messageGo to next message
Jim  Pendleton is currently offline  Jim Pendleton
Messages: 165
Registered: November 2011
Senior Member
On Friday, April 7, 2017 at 4:38:31 PM UTC-6, nicole araneda wrote:
> Hi, I need to do a 2 graphics in the same barplot, so I have this
>
> TEMP08=[30, 34, 38, 47, 57, 67, 73, 71, 63, 52, 39, 33]
> TEMP09=[28, 36, 42, 47, 55, 62, 70, 75, 66, 47, 44, 32]
> months=[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
>
> b1 = BARPLOT(months, TEMP08, index=0, NBARS=2, FILL_COLOR='gold', $
> YRANGE=[0, 80], YMINOR=0, YTITLE='Temperature Fahrenheit', $ XTITLE='Months', TITLE='Average Monthly Temperature')
>
> b2 = BARPLOT(months, TEMP09, INDEX=1, NBARS=2, FILL_COLOR='blue',/OVERPLOT)
>
> end
>
> (is the same example of the page http://www.harrisgeospatial.com/docs/barplots.html, I tested it first)
>
> and the errors are:
> ----------------------------
> b2 = BARPLOT(months, TEMP09, INDEX=1, NBARS=2, FILL_COLOR='blue',/OVERPLOT)
> ^
> % Syntax error.
> ----------------------------
> % End of file encountered before end of program.
> ----------------------------
>
> also, I have this
>
>
> ----------------------------
> % Attempt to call undefined procedure/function: 'BARPLOT'.
> ----------------------------
>
> I tried the procedure of this page
>
> http://www.harrisgeospatial.com/Support/HelpArticlesDetail/T abId/219/ArtMID/900/ArticleID/4326/4326.aspx
>
> but it was not the solution.
>
> Please, help!

I believe you had a simple formatting problem. There was a "$" line continuation character in the middle of one of your lines, which may not be illegal but does lead to future errors. Try cutting and pasting this to your IDL command line, instead:

TEMP08=[30, 34, 38, 47, 57, 67, 73, 71, 63, 52, 39, 33]
TEMP09=[28, 36, 42, 47, 55, 62, 70, 75, 66, 47, 44, 32]
months=[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]

b1 = BARPLOT(months, TEMP08, index=0, NBARS=2, FILL_COLOR='gold', $
YRANGE=[0, 80], YMINOR=0, YTITLE='Temperature Fahrenheit', $
XTITLE='Months', TITLE='Average Monthly Temperature')

b2 = BARPLOT(months, TEMP09, INDEX=1, NBARS=2, FILL_COLOR='blue',/OVERPLOT)

Jim P.
Re: % Attempt to call undefined procedure/function: 'BARPLOT'. [message #94322 is a reply to message #94319] Sat, 08 April 2017 19:20 Go to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
If Jim's suggestion doesn't work then check to see if you can do *any* IDL plots, e.g.try

p = plot(/test)

If this doesn't work then you are probably missing the standard IDL graphics directory in your !PATH. On my Mac this directory is /Applications/exelis/idl85/lib/graphics/

On Friday, April 7, 2017 at 6:54:11 PM UTC-4, Jim P wrote:
> On Friday, April 7, 2017 at 4:38:31 PM UTC-6, nicole araneda wrote:
>> Hi, I need to do a 2 graphics in the same barplot, so I have this
>>
>> TEMP08=[30, 34, 38, 47, 57, 67, 73, 71, 63, 52, 39, 33]
>> TEMP09=[28, 36, 42, 47, 55, 62, 70, 75, 66, 47, 44, 32]
>> months=[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
>>
>> b1 = BARPLOT(months, TEMP08, index=0, NBARS=2, FILL_COLOR='gold', $
>> YRANGE=[0, 80], YMINOR=0, YTITLE='Temperature Fahrenheit', $ XTITLE='Months', TITLE='Average Monthly Temperature')
>>
>> b2 = BARPLOT(months, TEMP09, INDEX=1, NBARS=2, FILL_COLOR='blue',/OVERPLOT)
>>
>> end
>>
>> (is the same example of the page http://www.harrisgeospatial.com/docs/barplots.html, I tested it first)
>>
>> and the errors are:
>> ----------------------------
>> b2 = BARPLOT(months, TEMP09, INDEX=1, NBARS=2, FILL_COLOR='blue',/OVERPLOT)
>> ^
>> % Syntax error.
>> ----------------------------
>> % End of file encountered before end of program.
>> ----------------------------
>>
>> also, I have this
>>
>>
>> ----------------------------
>> % Attempt to call undefined procedure/function: 'BARPLOT'.
>> ----------------------------
>>
>> I tried the procedure of this page
>>
>> http://www.harrisgeospatial.com/Support/HelpArticlesDetail/T abId/219/ArtMID/900/ArticleID/4326/4326.aspx
>>
>> but it was not the solution.
>>
>> Please, help!
>
> I believe you had a simple formatting problem. There was a "$" line continuation character in the middle of one of your lines, which may not be illegal but does lead to future errors. Try cutting and pasting this to your IDL command line, instead:
>
> TEMP08=[30, 34, 38, 47, 57, 67, 73, 71, 63, 52, 39, 33]
> TEMP09=[28, 36, 42, 47, 55, 62, 70, 75, 66, 47, 44, 32]
> months=[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
>
> b1 = BARPLOT(months, TEMP08, index=0, NBARS=2, FILL_COLOR='gold', $
> YRANGE=[0, 80], YMINOR=0, YTITLE='Temperature Fahrenheit', $
> XTITLE='Months', TITLE='Average Monthly Temperature')
>
> b2 = BARPLOT(months, TEMP09, INDEX=1, NBARS=2, FILL_COLOR='blue',/OVERPLOT)
>
> Jim P.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: % Attempt to call undefined procedure: 'ADDPATH'. % Execution halted at: $MAIN$
Next Topic: curl error with IDL 8.5

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 07:14:55 PDT 2025

Total time taken to generate the page: 0.00433 seconds