Re: Draw order in PyNGL

From: David Brown <dbrown_at_nyahnyahspammersnyahnyah>
Date: Tue Mar 05 2013 - 18:01:56 MST

Hi Charlie,
I assume you are setting the resource in the call to Ngl.polyline. It's a bit counter-intuitive perhaps but tfPolyDrawOrder is a resource belonging to the plot object that you draw the polyline on.
I think you can set it either for the resource argument of Ngl.contour_map or you can use an explicit Ngl.set_values on the map object return value of Ngl.contour_map.
We may be able to make this more convenient in the future by extracting from the Ngl.polyline res argument behind the scenes and then setting it for the plot argument.
 -dave

On Mar 5, 2013, at 3:55 PM, Charlie Koven wrote:

> Hi,
>
> I am trying to draw a polyline on top of a contour_map, and can't seem to be able to get the draw order right--it is consistently drawing the polyline under the map, so I have to go into the figure in Illustrator afterwards and manually rearrange the orders.
>
> I tried setting tfPolyDrawOrder = "PostDraw" but got this error:
> warning:tfPolyDrawOrder is not a valid resource in GraphicStyle at this time
>
> Is there another way of setting this?
>
> Thanks,
> Charlie Koven
>
>
>
> Charlie Koven
> Lawrence Berkeley National Lab
> 1 Cyclotron Rd. MS 84R0171
> Berkeley, CA 94720
> (510) 486-6724
> _______________________________________________
> pyngl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/pyngl-talk

_______________________________________________
pyngl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/pyngl-talk
Received on Tue Mar 5 18:02:02 2013

This archive was generated by hypermail 2.1.8 : Fri Apr 05 2013 - 10:21:49 MDT