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

Home » Public Forums » archive » problems producing a colobar
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
problems producing a colobar [message #29013] Thu, 24 January 2002 01:37
Michael Schroeter is currently offline  Michael Schroeter
Messages: 5
Registered: January 2002
Junior Member
Hi,

I have problems producing a colorbar (using David Fannings
"colorbar.pro") in combination with the postscript device
(on the screen using x11 device everything works fine):
in the resulting postscript file the colorbar appears as a
single black bar. What's going wrong? Does any one know
how to solve this problem?

I put the problem into the following example:

PRO mini

dev ='ps'
; If I switch to X11 and everything is well!
;dev = 'x'

SET_PLOT, dev

levels = 16

data = DIST(41,41)

LOADCT, 0, NCOLORS=16

step = (Max(data) - Min(data)) / levels
userLevels = IndGen(levels) * step + Min(data)

CONTOUR, data, POSITION=[0.15, 0.15, 0.95, 0.75], $
C_COLORS=INDGEN(16), Levels=userLevels, /FILL

ColorBar, NColors=16, Position = [0.15, 0.9, 0.95, 0.95]

IF ( dev EQ 'ps' ) THEN DEVICE, /CLOSE_FILE

END

Thank you in advance.

Michael
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Get coordinates of IDLgrContour object
Next Topic: Re: naming elements in an array

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

Current Time: Wed Oct 08 18:52:53 PDT 2025

Total time taken to generate the page: 0.00599 seconds