[ncl-talk] How to change the no data region color in contour plot

Mary Haley haley at ucar.edu
Mon Mar 21 10:40:35 MDT 2016


Yun,

I think you could simply set both mpLandFillColor and mpOceanFillColor to
"gray". mpFillOn needs to be set to True for this to work.

If the gray is appearing on top of the contours, then you can further try
setting mpFillDrawOrder to "Draw" or "PreDraw".

--Mary




On Fri, Mar 18, 2016 at 7:47 AM, Yun Yue <yunyue at huskers.unl.edu> wrote:

> Hi NCL users,
>
> I have a two dimensional array. This array has lat2d and lon2d
> attributes. If the lat2d, lon2d covers latitude from 0-5 N degree,
> longitude 0-5 E degree, When I do the contour plot, I set the mpMinLatF,
> mpMaxLatF, mpMinLonF, mpMaxLonF bigger than lat2d lon2d range (for example latitude
> from 0-10 N degree, longitude 0-10 E degree ). Now the region
> without data is filled with white color in NCL. But I want to change the
> region without data as gray or other colors. It looks like cnMissingValFillColor
> won't work at here. Does anyone know how to solve this? I appreciate any
> help.
>
> Thanks very much,
>
> Yun
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> 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/20160321/a29b8fde/attachment.html 


More information about the ncl-talk mailing list