problems producing a colobar [message #29013] |
Thu, 24 January 2002 01:37 |
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
|
|
|