[ncl-talk] Could I add some FillPatterns effect such as oblique lines to a raster fill plot ?
Adam Phillips
asphilli at ucar.edu
Fri Aug 21 12:19:48 MDT 2015
Hi Lin,
You can always do an overlay where you create two images:
1) Create a RasterFill plot with colors. (You already have this plot.)
2) Create a RasterFill plot with pattern fill (not color fill).
Then you would overlay 2) on 1) using the overlay procedure.
See example #10 here:
http://www.ncl.ucar.edu/Applications/overlay.shtml#ex10
Note that for plot 2) (or plot_shade in example 10) you would want to set
the following resources:
res at cnFillPattern = 3
res at cnMonoFillColor = True
res at lbLabelBarOn = False ; no labelbar needed
Available fill patterns:
http://www.ncl.ucar.edu/Document/Graphics/Images/fillpatterns.png
Hope that helps. If not, please respond to ncl-talk.
Adam
On Fri, Aug 21, 2015 at 8:44 AM, xianglin72 <xianglin72 at icloud.com> wrote:
> Hi, all
>
>
> I've made a raster fill plot ( see the attachment), and I want to add
> some FillPattern effect for some chosen cells in the plot.
>
>
> However, I found that the resource of cnFillPattern can not work for the
> raster fill plot. How could I do to add some effect,
>
>
> for example, some oblique lines to the chosen rectanglar cells?
>
>
>
> Thanks
>
>
>
> Lin
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
--
Adam Phillips
Associate Scientist, Climate and Global Dynamics Laboratory, NCAR
www.cgd.ucar.edu/staff/asphilli/ 303-497-1726
<http://www.cgd.ucar.edu/staff/asphilli>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150821/a7526e32/attachment.html
More information about the ncl-talk
mailing list