<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Jonathan,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I see that Adam already responded about one possible fix. I was also working on a suggestion, which I'll go ahead and post since it allows you to set other resources for fine-tuning your pattern fill.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Follow Adam's suggestion for copying the function to a new name, and then in that new code, add these two lines right before the "return (plot)" call:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><div class="gmail_default"> cnres = get_res_eq(opt,"cn")</div><div class="gmail_default"> attsetvalues_check(idstring,cnres)</div><div class="gmail_default"><br></div><div class="gmail_default">What this does is look for any "cn" resources that you've attached to the "opt" variable, and it will apply them to the existing plot before it exits the function.</div><div class="gmail_default"><br></div><div class="gmail_default">You have to be careful with this, because you don't want to use the same resource list that you passed into the original gsn_csm_contour_xxx call. If you do, then you will be applying *all* your original cnXXX resources to the newly modified plot, which you don't want.</div><div class="gmail_default"><br></div><div class="gmail_default">Instead, when you call gsn_contour_shade, make sure you are using a *new* resource list, and then you should be able to set resource like cnFillScaleF and cnFillDotSizeF.</div><div class="gmail_default"><br></div><div class="gmail_default">I don't know yet if this is an ideal permanent solution. More testing is needed for that!</div><div class="gmail_default"><br></div><div class="gmail_default">--Mary</div><div class="gmail_default"><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 7, 2016 at 8:33 AM, Buzan, Jonathan R <span dir="ltr"><<a href="mailto:jbuzan@purdue.edu" target="_blank">jbuzan@purdue.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi David,<br>
<br>
I see no change in the density or size of my stipple pattern. I’ve tried various combinations:<br>
<br>
opt = True<br>
opt@gsnShadeFillType = "pattern"<br>
opt@gsnShadeHigh = 17<br>
opt@cnMonoFillScale = True<br>
opt@cnFillScaleF = 0.1<br>
; opt@cnMonoFillScale = False<br>
; opt@cnFillScales = (/0,0,17/)<br>
; opt@cnFillScaleF = 0.1<br>
; opt@cnFillDotSizeF = 0.5<br>
<br>
plots1 = gsn_contour_shade(plots1,<wbr>minshade,maxshade,opt)<br>
<span class="HOEnZb"><font color="#888888"><br>
-Jonathan<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
<br>
<br>
<br>
> On Nov 4, 2016, at 6:25 PM, David Brown <<a href="mailto:dbrown@ucar.edu">dbrown@ucar.edu</a>> wrote:<br>
><br>
> You may actually want to use cnFillScaleF, the scalar resource that<br>
> applies to all fill pattern instances in the plot when cnMonoFillScale<br>
> is set True (the default).<br>
> cnFillScales is the companion array resource that allows you to set<br>
> different fill scalings (densities) for each contour fill level. For<br>
> it to apply you need to set cnMonoFillScale to False.<br>
> For stipple fill in particular you might also want to be aware of<br>
> cnFillDotSizeF if you are not already.<br>
> -dave<br>
><br>
><br>
><br>
> On Fri, Nov 4, 2016 at 4:02 PM, Buzan, Jonathan R <<a href="mailto:jbuzan@purdue.edu">jbuzan@purdue.edu</a>> wrote:<br>
>> Hello NCL-Talk,<br>
>><br>
>> I am using the gsn_contour_shade command, with pattern 17 (stipple). I am attempting change the density of the stipple, however, the gsn_contour_shade page does not list any commands to do so.<br>
>><br>
>> I tried, opt@cnFillScales = 0.5 but the command was not accepted and/or did not apply.<br>
>><br>
>><br>
>> -Jonathan<br>
>><br>
>><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>
<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>
</div></div></blockquote></div><br></div>