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

Home » Public Forums » archive » IDL Colorbar generation question
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: IDL Colorbar generation question [message #49228 is a reply to message #49146] Wed, 05 July 2006 15:07 Go to previous messageGo to previous message
britneys is currently offline  britneys
Messages: 3
Registered: July 2006
Junior Member
Coyote wrote:
> Tell us what system you used to draw your plots, and we can advise
> you more sensibly.
>
I do use direct graphics, whoops on the graphics object! This is how
the window is called:

SET_PLOT,PLATFORM
!P.FONT=0
DEVICE,DECOMPOSE=0,RETAIN=2
!P.BACKGROUND=255 ;background color=white
WINDOWCOUNT=0
WINDOW,WINDOWCOUNT,xsize=XWIND,ysize=YWIND,title=VERSION
ERASE

Okay, so back to your colorbar routine, it will automatically use my
self-defined color table? I used the following call:

colorbar = Obj_New("COLORBAR", Range=[0,1000], Format='(I4)', $
Title='Values')
colorbar->SetProperty, Position=[0.1, 0.75, 0.9, 0.80], /Draw
colorbar->Draw

is this correct? Also, when i output the file to a ps, the colorbar,
instead of being a smooth color transition ends up as several boxes of
different colors instead. Any ideas as to why this might occur?

Thanks again!
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: IDLWAVE Mac OS X
Next Topic: negation operator

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

Current Time: Wed Oct 08 17:54:38 PDT 2025

Total time taken to generate the page: 0.00442 seconds