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

Home » Public Forums » archive » Behaviour of colorbar title in z-buffer?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Behaviour of colorbar title in z-buffer? [message #87850 is a reply to message #87810] Fri, 28 February 2014 02:40 Go to previous messageGo to previous message
rjp23 is currently offline  rjp23
Messages: 97
Registered: June 2010
Member
On Thursday, February 27, 2014 5:02:43 PM UTC, David Fanning wrote:
> No. Can I see some code, please. :-)

I've trimmed it down to just what I think the relevant bits are. Doing the same thing but changing the z-buffer stuff to ps_start/ps_end gives what I'd expect.

Thanks

Rob



;open z-buffer
thisDevice = !D.Name
Set_Plot, 'Z', /COPY

Device, Set_Resolution=[resx,resy], Z_Buffer=0
Erase

;plot map
map_set,/grid,/continents,limit=plot_lat_min,plot_lon_min,pl ot_lat_max,plot_lon_max],glinethick=2,ymargin=0,xmargin=0,po sition=[posx1, posy1, posx2, posy2], mlinethick=2, color=0, /noerase


;do some plotting stuff here
<snip>

;set colorbar coordinates
cposx1=0.2
cposy1=0.08
cposx2=0.6
cposy2=0.09

title='Altitude [m]'
format='(I6)'
minval=0
maxval=5000

;plot colorbar
colorbar,range=[minval,maxval],/vertical,title=title, $
position=[cposx1, cposy1, cposx2, cposy2],ncolors=254, thick=4, charthick=2, format=format, color=255, charsize=1.5

;get plot from z-buffer
snapshot = TVRD()
TVLCT, r, g, b, /Get
Device, Z_Buffer=1
Set_Plot, thisDevice


image24 = BytArr(3, resx, resy)
image24[0,*,*] = r[snapshot]
image24[1,*,*] = g[snapshot]
image24[2,*,*] = b[snapshot]

Write_png, png_filename+'.png', image24
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to build connection between IDL and postGIS
Next Topic: interpolate weirdness

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

Current Time: Wed Oct 08 17:30:08 PDT 2025

Total time taken to generate the page: 0.00417 seconds