Re: Draw order in PyNGL

From: charlie koven <ckoven_at_nyahnyahspammersnyahnyah>
Date: Fri Mar 08 2013 - 12:21:36 MST

Thanks for the info. Ii thin kthat what I was really doing wrong (in
addition to the point you raised) was calling Ngl.draw(plot) after the
polyline were drawn, which I am guessing drew a second contour over the
polyline.

One other question: when overlaying contours on top of a contour map, is
there a way to suppress the box that says "contour from x to y by z" box?
It tried setting the lbLabelBarOn resource to False but that didn't do it.

Thanks,
Charlie Koven

On Tue, Mar 5, 2013 at 5:01 PM, David Brown <dbrown@ucar.edu> wrote:

> 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 Fri Mar 8 12:21:43 2013

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