[ncl-talk] Fill patterns (hatching) for xy plots?
Dennis Shea
shea at ucar.edu
Tue Jun 4 11:56:14 MDT 2019
What about drawing the xy plot and adding a polygon?
Attached is a modification of:
*http://www.ncl.ucar.edu/Applications/Scripts/xy_17.ncl*
<http://www.ncl.ucar.edu/Applications/Scripts/xy_17.ncl>
*%> ncl t*st.xy17.fsFillIndex.ncl
On Tue, Jun 4, 2019 at 9:35 AM Tabish Ansari <tabishumaransari at gmail.com>
wrote:
> Hi Rashed
>
> Yes, but I want to use them for shading areas between two lines in an
> xy-plot. I have two overlaid stacks of multiple time-series on the same
> axes. While I want to fill colors between lines of one stack, I want to
> fill patterns between lines of the other stack. But it seems like NCL
> doesn't have an option to do this, unfortunately. I tried different
> opacities of grey/black for the other stack but it obscures the message.
>
>
> Cheers,
>
> Tabish
>
>
> Tabish U Ansari
> PhD student, Lancaster Environment Center
> Lancaster Univeristy
> Bailrigg, Lancaster,
> LA1 4YW, United Kingdom
>
>
> On Tue, 4 Jun 2019 at 06:17, Rashed Mahmood <rashidcomsis at gmail.com>
> wrote:
>
>> I think the bar charts can use these filled patterns, e.g.:
>> *gsnXYBarChartPatterns*
>>
>>
>> https://www.ncl.ucar.edu/Document/Graphics/Resources/gsn.shtml#gsnXYBarChart
>>
>> On Mon, Jun 3, 2019 at 9:44 AM Tabish Ansari <tabishumaransari at gmail.com>
>> wrote:
>>
>>> Hi
>>>
>>> Is it possible to use fill patterns instead of color shading in xy
>>> plots? The following patterns are available for contour plots but not xy
>>> plots:
>>> https://www.ncl.ucar.edu/Document/Graphics/Images/fillpatterns.png
>>>
>>> Cheers
>>>
>>> Tabish
>>>
>>> Tabish U Ansari
>>> PhD student, Lancaster Environment Center
>>> Lancaster Univeristy
>>> Bailrigg, Lancaster,
>>> LA1 4YW, United Kingdom
>>> _______________________________________________
>>> ncl-talk mailing list
>>> ncl-talk at ucar.edu
>>> List instructions, subscriber options, unsubscribe:
>>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>>
>> _______________________________________________
> 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/20190604/0a4697c4/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tst.xy17.gsFillIndex.ncl
Type: application/octet-stream
Size: 1774 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20190604/0a4697c4/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xy_poly.png
Type: image/png
Size: 105896 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20190604/0a4697c4/attachment.png>
More information about the ncl-talk
mailing list