suppressing plots warning in map_continents

52 views
Skip to first unread message

M16

unread,
Dec 13, 2023, 12:19:33 PM12/13/23
to idl-pvwave
Hello, 

When I create maps using the code below:
map_set  &  map_continents  & map_continents,/countries

I get the following message hundreds of times while the plotting is being doing, for both continents and countries:

%PLOTS: PSYM (plotting symbol) out of range

Of course, I get this from time to time when I use plots if the data lies outside the x,y,z bounds.

Is there someway to suppress this message?

Thanks!

Ben C

unread,
Dec 18, 2023, 7:01:58 PM12/18/23
to idl-pvwave
Do you have an example of what code is creating these hundreds of warnings? 

This Forum topic may be helpful. See !QUIET, !EXCEPT or use CATCH: https://www.nv5geospatialsoftware.com/Support/Forums/aft/4178

M16

unread,
Jan 11, 2024, 4:53:42 PM1/11/24
to idl-pvwave
I found the problem.....  I was drawing a world map:

pro mmap

map_set  &  map_continents  & map_continents,/countries
return
end

 The problem was that I had !psym=10 which resulted in me getting the following message hundreds of times:
 PLOTS: PSYM (plotting symbol) out of range
which of course slowed things down dramatically.

When !psym set to zero the error messages disappeared and the world map plot took less than a second. Not sure why !psym=10 would throw this error but there you go....

Chris Torrence

unread,
Jan 12, 2024, 12:26:57 PM1/12/24
to idl-pvwave
I'm glad you figured it out! PSYM=10 is histogram mode, which I guess gets really angry when trying to plot a map.

I'm sure you already know this, but you might also experiment with function graphics:
m = map('Equirectangular')
m1 = mapcontinents(/countries, fill_color='light yellow')

It has a few more options than direct graphics and can (usually) produce nicer looking results with less effort.
Cheers,
Chris
NV5 Geospatial
Reply all
Reply to author
Forward
0 new messages