X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 05 Mar 2014 01:02 AM by  anon
vector over map problem?
 2 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
05 Mar 2014 01:02 AM
    Hi, I run the vector NG function example with IDL 8.3: ; Read the data. RESTORE, FILEPATH('globalwinds.dat', SUBDIR=['examples','data']) ; Set up the map projection, grid, and continents. m = MAP('Equirectangular', LIMIT=[0,-150,60,-45], $ LABEL_POSITION=0, LABEL_ANGLE=0, $ COLOR='light gray', LABEL_COLOR='black') cont = MAPCONTINENTS(FILL_COLOR='light gray') ; Display the vector data on top of the map. vec = VECTOR(u, v, x, y, /OVERPLOT, $ MIN_VALUE=0, MAX_VALUE=25, $ RGB_TABLE=39, AUTO_COLOR=1, LENGTH_SCALE=2) l = Legend(SAMPLE_MAGNITUDE=10, UNITS='$m s^{-1}$', $ POSITION=m.MapForward(-45,61), /DATA, $ VERTICAL_ALIGNMENT='bottom') c = Colorbar(TARGET=vec, POSITION=[0.2,0.1,0.8,0.15], $ TITLE='Wind speed $(m s^{-1})$') and when I zoom in or out the graphics, the following messages show: % IDLGRSRCDEST::DRAW: IDLGRSRCDEST::DRAW cannot be called recursively. % IDLGRSRCDEST::DRAW: IDLGRSRCDEST::DRAW cannot be called recursively. So why? Very thanks! dave

    Deleted User



    New Member


    Posts:
    New Member


    --
    05 Mar 2014 10:33 AM
    Hi Dai, Well, it seems that the call to LEGEND() is the culprit. I'm able to reproduce the issue. If you remove that call to legend, then the zooming and panning work fine. We will be investigating this issue, so please, don't hesitate asking us about the status of this any time in the future. You can write directly to Tech Support: support@exelisvis.com Cheers, Fernando

    Deleted User



    New Member


    Posts:
    New Member


    --
    05 Mar 2014 06:55 PM
    Very thanks! And I find IDL 8.2.3 have not this problem.
    You are not authorized to post a reply.