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

Home » Public Forums » archive » Re: COLOR BAR
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: COLOR BAR [message #2553 is a reply to message #2550] Tue, 26 July 1994 09:43 Go to previous message
caron is currently offline  caron
Messages: 16
Registered: May 1994
Junior Member
Whats wrong with XYOUTS?
heres mine:

PRO draw_colorbar
@control_com
@windraw_com

sh = (wdp.ysize + wdv.ysize) / cc_data_nlevels
for j=0, cc_data_nlevels-1 do begin
color = cc_contour_colors(j)
tv, replicate(color, 40, sh), 0, sh*j
lab = string(format='(E10.3)', cc_contour_levels(j))
labs = strtrim(lab, 2)
lab1 = strmid( labs, 0, 4)
lab2 = strmid( labs, strpos(labs,'E'), 4)
;print, lab, labs, lab1, lab2
xyouts, 1, 20+sh*j, /device, color = 1, charsize = 1.0, lab1
xyouts, 1, 3+sh*j, /device, color = 1, charsize = 1.0, lab2
endfor
END
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: IDL 3.6.1 does not start on AIX
Next Topic: Re: MAP=0 and EDITABLE conflict

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

Current Time: Sat Oct 11 10:37:18 PDT 2025

Total time taken to generate the page: 0.01362 seconds