<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div></div><div>Hello,</div><div>gsn_contour_shade simply color fills contours of the existing contour field. If you call it twice for the same plot, it will replace the color filled contours from the 1st call to gsn_contour_shade with those specified in the second call. </div><div><br></div><div>You have two options: </div><div>1) create two versions of wspeedfill, call gan_contour_shade for each, and then overlay.</div><div>2) Do not use gsn_contour_shade and specify the fill colors using the cnFillColors resource, setting most colors to transparent and two colors to grey. </div><div>Hope that helps! If you have further questions let ncl-talk know.</div><div>Adam</div><div><br>On Aug 21, 2018, at 7:34 PM, Rick Brownrigg <<a href="mailto:brownrig@ucar.edu">brownrig@ucar.edu</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr"><div>Hi,</div><div><br></div><div>Very hard to say with the information provided. The examples cited at the bottom of the description of gsn_contour_shade show how to do multiple shades:</div><div><br></div><div>   <a href="http://ncl.ucar.edu/Document/Graphics/Interfaces/gsn_contour_shade.shtml">http://ncl.ucar.edu/Document/Graphics/Interfaces/gsn_contour_shade.shtml</a></div><div><br></div><div>In general, they involve setting the resources gsnDraw and gsnFrame to False, doing your gsn_contour_shade() calls, and then calling</div><div><br></div><div>  draw(plot)</div><div>  frame(wks)</div><div><br></div><div>to draw everything.</div><div><br></div><div>If those examples don't help, you might write back with more of your script to help others trouble shoot.  I hope that helps...</div><div><br></div><div>Rick<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 21, 2018 at 5:29 PM, yang yang <span dir="ltr"><<a href="mailto:yang.yang816@gmail.com" target="_blank">yang.yang816@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Dear All:</div><div><br></div><div>I would like to plot two shade areas in a diagram using the codes below:</div><div><br></div><div>  wspeedfill    = gsn_csm_contour(wks,ptt,<wbr>wspeed_res)<br>opt = True<br>  opt@gsnShadeMid = "grey"<br> wspeedfill = gsn_contour_shade(wspeedfill,<wbr>315.,330.,opt)<br>draw(wspeedfill)<br>opt1 = True<br>opt1@gsnShadeMid = "grey"<br>wspeedfill = gsn_contour_shade(wspeedfill,<wbr>340.,355.,opt1)</div><div><br></div><div>However, only one shade area (<span style="font:400 13.33px/19.99px Arial,Helvetica,sans-serif;text-align:left;color:rgb(34,34,34);text-transform:none;text-indent:0px;letter-spacing:normal;text-decoration:none;word-spacing:0px;display:inline;white-space:normal;font-size-adjust:none;font-stretch:normal;float:none;background-color:transparent">340.,355.) was plotted. Can you please tell me how to fix this problem?</span></div><div><span style="font:400 13.33px/19.99px Arial,Helvetica,sans-serif;text-align:left;color:rgb(34,34,34);text-transform:none;text-indent:0px;letter-spacing:normal;text-decoration:none;word-spacing:0px;display:inline;white-space:normal;font-size-adjust:none;font-stretch:normal;float:none;background-color:transparent"><br></span></div><div><span style="font:400 13.33px/19.99px Arial,Helvetica,sans-serif;text-align:left;color:rgb(34,34,34);text-transform:none;text-indent:0px;letter-spacing:normal;text-decoration:none;word-spacing:0px;display:inline;white-space:normal;font-size-adjust:none;font-stretch:normal;float:none;background-color:transparent">Thanks very much!</span></div><div><span style="font:400 13.33px/19.99px Arial,Helvetica,sans-serif;text-align:left;color:rgb(34,34,34);text-transform:none;text-indent:0px;letter-spacing:normal;text-decoration:none;word-spacing:0px;display:inline;white-space:normal;font-size-adjust:none;font-stretch:normal;float:none;background-color:transparent"><br></span></div><div><span style="font:400 13.33px/19.99px Arial,Helvetica,sans-serif;text-align:left;color:rgb(34,34,34);text-transform:none;text-indent:0px;letter-spacing:normal;text-decoration:none;word-spacing:0px;display:inline;white-space:normal;font-size-adjust:none;font-stretch:normal;float:none;background-color:transparent">Regards</span></div><div><span style="font:400 13.33px/19.99px Arial,Helvetica,sans-serif;text-align:left;color:rgb(34,34,34);text-transform:none;text-indent:0px;letter-spacing:normal;text-decoration:none;word-spacing:0px;display:inline;white-space:normal;font-size-adjust:none;font-stretch:normal;float:none;background-color:transparent">Ed</span><b></b><i></i><u></u><sub></sub><sup></sup><strike></strike></div><div><br></div></div>
<br>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/<wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>ncl-talk mailing list</span><br><span><a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a></span><br><span>List instructions, subscriber options, unsubscribe:</span><br><span><a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></span><br></div></blockquote></body></html>