[ncl-talk] draw order

Jian Zheng jzheng8606 at gmail.com
Wed Feb 11 18:09:55 MST 2015


Hi Mary, Adam,

I test your suggestions, only using gsn_add_polyline works for my purpose.

Thanks a lot.
Jian

On Thu, Feb 12, 2015 at 2:03 AM, Adam Phillips <asphilli at ucar.edu> wrote:

> Hi Jian,
> Assuming you have tried setting tfPolyDrawOrder = "Draw" and "PreDraw" in
> the resource list that you pass to gsn_add_polygon, you can also try
> setting tfPolyDrawOrder = "PostDraw" within the resource list that you pass
> to gsn_csm_xy.
>
> If neither of those suggestions work one last possibility is to draw the
> zero line yourself using gsn_add_polyline, and setting  tfPolyDrawOrder =
> "PostDraw" in that resource list..
> Hope that helps.. If not, please respond to ncl-talk and include your
> script.
> Adam
>
> On Wed, Feb 11, 2015 at 7:31 AM, Jian Zheng <jzheng8606 at gmail.com> wrote:
>
>> Hi NCLers,
>>
>> I want to draw some time series with a zero line and some filled boxes
>> for highlight. I use gsnYRefLine to draw the zero line and gsn_add_polygon
>> to draw the boxes. I find the boxes cover the zero line (see attachment). I
>> have set tfPolyDrawOrder as "Draw". Does anyone know how to set the order
>> to make the boxes at the bottom and NOT covering the zero line?
>>
>> Thanks in advance.
>> Jian
>>
>> _______________________________________________
>> ncl-talk mailing list
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
>>
>
>
> --
> Adam Phillips
> Associate Scientist,  Climate and Global Dynamics Division, 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/20150212/9ecdfa5f/attachment.html 


More information about the ncl-talk mailing list