Re: contour color fill

From: Marjolaine Rouault <marjolaine_at_nyahnyahspammersnyahnyah>
Date: Fri, 19 May 2006 16:11:19 +0200

Dear all,

I have actually done it using the "ExplicitLevels" contour method and
automated it like so:

maxVal is the maximum contour value

 x=ispan(1,maxVal,1)
; define levels for contouring which increase exponentially
levels = x*log(exp(x))/maxVal
; or if you want a steeper curve
levels = x^2.*log(exp(x))/(maxVal^2)

On Friday, 19 May 2006 15:07, Dennis Shea wrote:
> > I was wondering if there is a way to have a logarithmic colour contour
> > axis. I want colour contours to go from say 0 to 30 but have a
> > logarithmic spacing.
>
> Yes ... You can set the contour levels explicitly.
>
> http://www.ncl.ucar.edu/Applications/index.shtml
> See "Plot Techniques" => "Contours ..."
>
> A specific example of explicitly seetting contour levels:
> http://www.ncl.ucar.edu/Applications/Scripts/conLev_3.ncl
>
> [snip]
> res@cnLevelSelectionMode = "ExplicitLevels" ; set explicit contour
> levels res@cnLevels = log10((/ 1, 3, 5, 7.5, 10, 15, 20, 25, 30/)) ;
> set levels [snip]
>
> Cheers
> D

_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri May 19 2006 - 08:11:19 MDT

This archive was generated by hypermail 2.2.0 : Fri May 19 2006 - 10:04:53 MDT