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

Home » Public Forums » archive » !p.multi , colorbar&set_viewport ?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
!p.multi , colorbar&set_viewport ? [message #86568] Wed, 20 November 2013 02:16 Go to previous message
anil is currently offline  anil
Messages: 34
Registered: August 2009
Member
Hello,
I'm trying to plot many figures with multi-plots in each of them.
I use !p.multi. The problem is I plot my colorbar using set_viewport,as below:

b=clevels
r=size(b)
aa = dblarr(r(1),2)
aa = [[b], [b]]
cc = dblarr(1, 2)
cc = [0, 1]
cc=transpose(cc)
set_viewport, 0.05,0.55,0.55,0.57

contour,aa, b ,cc,/cell_fill, levels = b, /noer,$
ytickinterval = 1, ycharsize = 1, ys =4,xs = 1,charthick=1,charsize=0.4 ,$
c_colors=indgen(269)+1,/overplot

My code works fine until this point. I plot map projections with contour on top of them. Then I want to add my colorbar beneath this figure but what happens is starting from the 2nd file, it only plots the frame (from set_viewport command) and plots everythin else inside this frame. How can I fix this? I use /advance and /noerase keywords in the map projection and contour routines but it gets stuck in this viewport. When i just do set_viewport,device. I can see the map projection and contour on top of it. So I am sure it is plotting, just not where i want it. Any help is appreciated
Cheers,
Anil
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Using thick=2 increases FG plot time by 25x?!?!
Next Topic: mathematical symbols

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

Current Time: Wed Oct 08 11:29:24 PDT 2025

Total time taken to generate the page: 0.00388 seconds