Color problems with 5.5/RH linux 7.1 [message #27822] |
Tue, 06 November 2001 17:49  |
Pete Riley
Messages: 12 Registered: June 1998
|
Junior Member |
|
|
Hi all,
Is anyone having problems with IDL 5.5 under RH linux 7.1 and colors.
Even invoking XLOADCT shows a messed up color table and DIST(200,200) has
vertical lines through it.
I understood that all color depths were supported in 5.5. In the beta
version I still had to use the DEVICE, PSEUDO,DECOMPOSED trick, but that
doesn't even work for me now.
Cheers, Pete
|
|
|
Re: color problems [message #29462 is a reply to message #27822] |
Tue, 19 February 2002 17:13  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Patrick McEnaney (patrick@es.ucsc.edu) writes:
> I'm working with a fairly large array of oceanographic data [30,501].
> This is one of the smaller examples actually. Anyway, I'm plotting the
> data with a simple contour statement:
>
>
> contour,z, /cell_fill,zrange=[0,1], xstyle=1, ytitle='Depth(m)', $
> title='ORCAS Time Series Light Scattering Plot', $
> xtitle='Time (Julian Day)', nlev=200, yrange=[15,0], $
> min_value=0, max_value=1, background=0, position=[0.15, $
> 0.3,0.9,0.95], xtickname=[time(1:29)]
>
> after using the standard
>
> loadct, 38....
>
> My problem:
>
> Although the ranges are set very closely to the ranges of the data, I
> can't get the data to display in a range of colors. No matter which
> color table I use, the data almost always shows in just shades of red,
> with almost no texture even the the values are variable.
>
> Any suggestions? I've had numerous problems manipulating colors in idl
> in the past, it would be great to find a fix.
I'd try DEVICE, DECOMPOSED=0 for starters. Then I would
think really, really hard about whether I wanted to draw 200
contour lines on a contour plot (NLEVELS=200, as in your
code). You must have a REALLY big display!
There are a couple of articles on my web page that you
might find useful. I'd start here:
http://www.dfanning.com/tips/nlevels.html
I'd also include a C_COLORS keyword so you get to
choose the colors, rather than IDL.
Cheers,
David
--
David W. Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|