<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Matt,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I'm looking into this one; I don't think we have an example in our gallery, but I'll try to create one to see if it works.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--Mary</div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 24, 2018 at 12:06 PM, Fearon, Dr. Matthew, Contractor, Code 7533 via pyngl-talk <span dir="ltr"><<a href="mailto:pyngl-talk@ucar.edu" target="_blank">pyngl-talk@ucar.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="blue" vlink="purple">
<div class="m_5020516064415977715WordSection1">
<p class="MsoNormal"><span style="color:#1f497d">Just a follow-up. I have learned that fill color between 2 adjacent lines with Ngl.xy works nicely for an exclusive xy plot. However, it does not work as an overlay to a contour plot when sfXArray/sfYArray or
sfYCStart/End/ and sfXCStart/End are used in the original contour plot. Individual xy lines with Ngl.xy can be overlain on a contour plot with no trouble, but fill color between them does not work.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d">Any help on this subject would be great.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d">Thanks,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d">Matt<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><a name="m_5020516064415977715__MailEndCompose"><span style="color:#1f497d"><u></u> <u></u></span></a></p>
<div>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> pyngl-talk [mailto:<a href="mailto:pyngl-talk-bounces@ucar.edu" target="_blank">pyngl-talk-bounces@<wbr>ucar.edu</a>]
<b>On Behalf Of </b>Fearon, Dr. Matthew, Contractor, Code 7533 via pyngl-talk<br>
<b>Sent:</b> Thursday, August 23, 2018 12:28 PM<br>
<b>To:</b> <a href="mailto:pyngl-talk@ucar.edu" target="_blank">pyngl-talk@ucar.edu</a><br>
<b>Subject:</b> [pyngl-talk] Fill color between 2 lines with Ngl.xy<u></u><u></u></span></p>
</div>
</div><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Hi, PyNGL Users,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I’m trying to indicate the terrain profile on the attached cross section plot. I am able overlay an xy line (black, terrain top) and another xy line (red, ground surface), but am unable to fill color between these two lines. All the combinations
I have tried are not working. Below is my Ngl.xy code for the overlay. Any help is greatly appreciated.
<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks,<u></u><u></u></p>
<p class="MsoNormal">Matt<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">-----<u></u><u></u></p>
<p class="MsoNormal">xvar[100] is a np array of the xvalues<u></u><u></u></p>
<p class="MsoNormal">pter[2,100] is a np array of the yvalues<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"> xyres = Ngl.Resources()<u></u><u></u></p>
<p class="MsoNormal"> xyres.nglFrame = False<u></u><u></u></p>
<p class="MsoNormal"> xyres.nglDraw = False<u></u><u></u></p>
<p class="MsoNormal"> xyres.xyLineColors = ["black","red"]<u></u><u></u></p>
<p class="MsoNormal"> xyres.xyLineThicknesses = [8,8]<u></u><u></u></p>
<p class="MsoNormal"> xyres.nglXYFillColors = ["red","red"]<u></u><u></u></p>
<p class="MsoNormal"> xyres.nglXYBelowFillColors = ["red","red"]<u></u><u></u></p>
<p class="MsoNormal"> xyres.nglXYAboveFillColors = ["red","red"]<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"> xyline = Ngl.xy(wks,xvar,pter,xyres)<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"> Ngl.overlay(plot,xyline)<u></u><u></u></p>
</div></div></div>
</div>
<br>______________________________<wbr>_________________<br>
pyngl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/pyngl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/<wbr>mailman/listinfo/pyngl-talk</a><br>
<br></blockquote></div><br></div>