[ncl-talk] Plot of constant values

Alan Brammer abrammer at albany.edu
Tue Nov 11 10:08:02 MST 2014


It'll help everyone solve this by describing how it is not working?  Also
fyi these are resources not functions.


This works exactly as expected for me in 6.2.0 and 6.2.1.


x = new ( (/100,100/), float)
x = 100

wks = gsn_open_wks("X11","ConstFill_wks")

res = True
res at cnFillOn = True                 ;;;;  The contour needs to be filled to
start with, for a constant value to be filled.
res at cnConstFEnableFill = True
res at cnConstFLabelOn = False

plot = gsn_csm_contour(wks, x, res)




Alan Brammer



On Tue, Nov 11, 2014 at 11:29 AM, Raffaele Quarta <
raffaele.quarta at linksmt.it> wrote:

>  Hi,
>
> I'm using the 6.2.0 NCL version. Actually, I'm dealing with the problem to
> plot an area with constant value.
> I saw that starting from the version 6.2.0, the following function is able
> to solve the problem.
>
> -------------------------
> cnConstFEnableFill
>
> Available in version 6.2.0 and later.
> If the boolean resource cnConstFEnableFill is set to True, then in most
> cases, constant or near-constant fields will be rendered as a filled area,
> rather than having the contoured area remain blank. By default, the
> constant field informational text box will still appear; turn it off by
> setting cnConstFLabelOn to False.
>
> In the future, cnConstFEnableFill will likely default to True, with
> cnConstFLabelOn defaulting to False unless contour line drawing is enabled.
>
> Default: False
> -----------------------
>
> I tried to use this solution but it seems not working. Maybe it a bug of
> the software?
> Can you suggest a different solution?
>
> Thank you very much.
>
> Raffaele
>
> --
> This email was Virus checked by Astaro Security Gateway. http://www.sophos.com
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20141111/86e87a80/attachment.html 


More information about the ncl-talk mailing list