X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 21 Nov 2012 10:12 AM by  anon
Multiple Plots on a Page using IDL
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
21 Nov 2012 10:12 AM
    Hello, I am trying to have two plots in the horizontal direction in one page using IDL. a part of the code: !P.Multi = [0,2,1,0,0] ;first plot !P.Position = [0.02,0.04,0.40,0.90] Map_Set, 90, 0, -90, /Stereographic, /isotropic, limit=[60,180,60,-180] polyfill,[[0,0],[0,1],[1,1],[1,0]],/normal,color=blanc Map_Continents,color=0,/Continents,thick=2 Map_Grid, color=0, londel=30, latdel=10, glinethick=2, /box,/label ;second plot !P.Position = [0.58,0.04,0.96,0.90] Map_Set, -90, 0, /Stereographic, /isotropic, limit=[-60,180,-60,-180] polyfill,[[0,0],[0,1],[1,1],[1,0]],/normal,color=blanc Map_Continents,color=0,/Continents,thick=2 Map_Grid, color=0, londel=30, latdel=10, glinethick=2, /box,/label ; fname=fiche+'_p_'+heure+'.png' image=tvrd(order=0) tvlct, r, g, b, /get write_png, fname, image, r, g, b ; end Only the second plot is visualised. I tried without setting positions but it did not work. As well, I tried to remove the polyfill for the first or the second plot only and for both. Any advice or suggestions will be greatly appreciated! Iriola

    Deleted User



    New Member


    Posts:
    New Member


    --
    21 Nov 2012 02:43 PM
    MAP_SET works in a funny way with !P.Multi. You have to use the ADVANCE keyword to advance the map: http://www.idlcoyote.com/tips/map_pmulti.html
    You are not authorized to post a reply.