Re: assigning colors

From: Rick Brownrigg <brownrig_at_nyahnyahspammersnyahnyah>
Date: Mon Mar 26 2012 - 13:49:19 MDT

Hi Alexander,

What are these numbers in:

> res@cnFillColors = (/194.,178.,162.,146.,122.,98.,90.,80.,70.,60.,50.,40.,30.,20. /)

They should be either named colors or integer indices into the workstation colormap. Is that what you intended?

Rick

On Mar 26, 2012, at 12:58 PM, Alexander Semenov wrote:

> Hello,
>
> I'm trying to assign specific colors to specific values but it doesn't work for some reason.
>
> Here's how I did it:
>
> res@cnFillOn = True
> res@cnLinesOn = False
> res@cnLineLabelsOn = False
> res@cnLevelSelectionMode = "ManualLevels"
> res@cnMinLevelValF = -50.
> res@cnMaxLevelValF = 20.
> res@cnLevelSpacingF = 5.
> res@cnFillDrawOrder = "Draw"
> res@cnFillColors = (/194.,178.,162.,146.,122.,98.,90.,80.,70.,60.,50.,40.,30.,20. /)
> res@cnLevelSelectionMode = "ExplicitLevels"
> res@cnMonoFillColor = False
> res@cnLevels = (/ 20., 15., 10., 5., 0., -5., -10., -15., -20., -25., -30., -35., -40., -45., -50. /)
>
>
> --
> regards
>
> *******************************************************
> Alexander Semenov
>
> PhD Student - Research Assistant
> International Arctic Research Center
> Department of atmospheric sciences
> University of Alaska Fairbanks
>
> 930 Koyukuk dr, 408c3
> Fairbanks, AK, USA, 99775
> work phone +19074742672
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Mar 26 13:49:29 2012

This archive was generated by hypermail 2.1.8 : Tue Mar 27 2012 - 08:50:24 MDT