[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Colorbar problems
- Subject: Re: Colorbar problems
- From: davidf(at)dfanning.com (David Fanning)
- Date: Wed, 25 Apr 2001 19:02:11 -0600
- Newsgroups: comp.lang.idl-pvwave
- Organization: Fanning Software Consulting
- References: <email@example.com>
- Xref: news.doit.wisc.edu comp.lang.idl-pvwave:24685
Francesco (firstname.lastname@example.org) writes:
> When I plot the topography I use this lines:
> FOR i=1,19 DO BEGIN
> cctop(i) = cctop(i-1) + 4
> contour,z, POSITION=[0.15, 0.15, 0.95, 0.75],$
> xstyle=9,xtitle='x-axis (km)',ystyle=9,ytitle='y-axis (km)',$
> 1750,2000,2500,3000], $
> ticklen=-0.02, c_colors=cctop,charsize=1.5,/fill
> but I don't know if is possible to set up David colobar in a correct
> (or if you have a better idea for plotting topography).
> The biggest problem is that I plot levels with irregular distance,
> the only idea I have is putting the same "irregularity" in cctop!!
> but I think is more than bad programming :-((
I realize this reply is belated, but I don't see a reply
in my newsreader.
My COLORBAR routine has absolutely no problem with
irregular contour levels. Just use [XY]TICKV, etc.
But I do think it odd that you would use noncontiguous
color values. I've never done this. Add although I admit
to being terribly jet-lagged, I can't for the life of me
come up with a scenario where I would. If you wanted likely
colors in indices 10 to 100, wouldn't you do something like
LOADCT, 33, NColors=90, Bottom=10
Colorbar, XTickV=levels, NColors=90, Bottom=10
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: email@example.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155