<div dir="ltr"><div dir="ltr">Hi Anne,<div>By setting this: res2@cnMonoFillPattern = True</div><div>you are telling NCL to use stippling for all contour ranges. That is fine, but you'll want to alter the colors of the stippling so that all values below 95% are set to transparent, and all values equal to or above 95 are set to black. Looking at your resource list I don't see what you would still be seeing lines of significance with res2@cnLinesOn = False. </div><div><br></div><div>Here's a typical resource list that I use for stippling significance:</div><div><div> res2 = True</div><div> res2@gsnDraw = False</div><div> res2@gsnFrame = False</div><div> res2@cnFillOn = True</div><div> res2@cnLinesOn = False </div><div> res2@cnLineLabelsOn = False</div><div> res2@cnLevelSelectionMode = "ExplicitLevels"</div><div> res2@cnLevels = 95.</div><div> res2@cnInfoLabelOn = False</div><div> res2@cnMonoFillPattern = False</div><div> res2@cnFillPatterns = (/0,17/)</div><div> res2@cnFillColors = (/"transparent","gray10"/) </div><div> res2@cnFillScaleF = 0.4</div><div> res2@cnFillDrawOrder = "PreDraw"</div></div><div><br></div><div>Note as well that you should not set gsnMaximize in your res2 resource list, as that resource should only be applied to the baseplot (plot_a) if you are not paneling, or to the panel resource list if you are paneling. </div><div>Hope that helps!<br>Adam</div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Jan 14, 2019 at 11:20 AM Anne <<a href="mailto:anne.seidenglanz@unive.it" target="_blank">anne.seidenglanz@unive.it</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">Thanks, Rick, I will try what you suggested. To point 1, trying to get dots instead of lines (for significance), those are the resources I used:<div><br></div><div><div><div>; ** PLOT 2 ***</div><div> res2 = True ; res2 probability plots</div><div> res2@gsnDraw = False ; Do not draw plot<br></div><div> res2@gsnFrame = False ; Do not advance frame</div><div><br></div><div> res2@cnLevelSelectionMode = "ManualLevels" ; set manual contour levels</div><div> res2@cnMinLevelValF = 90 ; set min contour level</div><div> res2@cnMaxLevelValF = 100 ; set max contour level</div><div> res2@cnLevelSpacingF = 0.1 ; set contour spacing</div><div><br></div><div> res2@cnMonoFillPattern = True</div><div> res2@cnFillPattern = 17</div><div> res2@cnFillDotSizeF = 0.5<br></div><div><br></div><div> res2@cnInfoLabelOn = False ; turn off info label</div><div> res2@cnLinesOn = False ; do not draw contour lines<br></div><div> res2@cnLineLabelsOn = False ; do not draw contour labels</div><div> res2@gsnLeftString = ""</div><div> res2@gsnRightString = ""</div><div><br></div><div> res2@gsnMaximize = True ; enlarge plot</div><div> res2@gsnAddCyclic = True</div><div><br></div><div> plot_stat = gsn_csm_contour(wks, aveX, res2) ; aveX = 95% stat sign. </div><div> overlay (plot_a, plot_stat)<br></div><div><br></div><div> draw(plot_a)</div><div> frame(wks)</div></div><div class="gmail-m_2306050327819932053gmail-m_-4098444683758081466m_7194324282029327005gmail-yj6qo"></div><br class="gmail-m_2306050327819932053gmail-m_-4098444683758081466m_7194324282029327005gmail-Apple-interchange-newline"></div><div><i>where</i> </div><div>plot_a = gsn_csm_contour_map (wks, var_diff(0,:,:), res)<br></div><div><br></div><div><i>So I used</i></div><div> res2@cnMonoFillPattern = True<br></div><div><div> res2@cnFillPattern = 17</div></div><div><br></div><div>to get the dots instead of lines. But this did not work and I still see lines instead of dots. </div><div><br></div><div>Any hint welcome,</div><div>thanks,</div><div>Anne</div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Sat, Jan 12, 2019 at 9:06 PM Rick Brownrigg <<a href="mailto:brownrig@ucar.edu" target="_blank">brownrig@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi,</div><div><br></div><div>In answer to your second question, regarding the paneling of overlay plots, it *may* be the case that you have to draw that "plot_stat" for each overlay. There's wording to this effect in the docs:</div><div><br></div><div>"Once you overlay <em>transform_id</em> plot, you can no longer draw it
separately. You can only draw the <em>base_id</em> plot, which causes
the base plot to be drawn along with all the plots that have been
overlaid on it."</div><div><br></div><div>which suggests to me that you can't reuse plot_stat for the second overlay. I don't know this for certain -- it is speculation and perhaps something to try out.</div><div><br></div><div>Its hard to say about your first question -- in what sense does it not work? We don't see all the resources you used -- is it the case you have:</div><div><br></div><div><div> res@gsnDraw = False ; Do not draw plot<br></div><div> res@gsnFrame = False ; Do not advance frame</div><div><br></div><div>for the first plot (plot_a)?<br></div><div><br></div><div>Rick<br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail-m_2306050327819932053gmail-m_-4098444683758081466gmail-m_7194324282029327005gmail-m_-6216986088674258144gmail_attr">On Sat, Jan 12, 2019 at 12:27 PM Anne <<a href="mailto:anne.seidenglanz@unive.it" target="_blank">anne.seidenglanz@unive.it</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi everyone,</div><div dir="ltr"><br></div><div>basically, I am coming with 2 issues here:</div><div><br></div><div>1) I am trying to stipple the 95% statistical significance, for this purpose I have set 2 resource lists: one for the base contours, and one for the stat. significance contours on top. For the resource list on top, I have set </div><div><br></div><div><div> res2@cnMonoFillPattern = True</div><div> res2@cnFillPattern = 17</div></div><div><br></div><div>to get the dots instead of lines. Somehow that change didn't work. Did I miss something?</div><div><br></div><div>2) How do I panel plots that are produced using the 'overlay' procedure? I have tried using</div><div><br></div><div>plot(0) = overlay(plot1, plot_stat)</div><div>plot(1) = oberlay(plot2, plot_stat)</div><div><br></div><div>etc. but that gave me an error message.</div><div><br></div><div>Thanks for any help and sorry if I had missed these issues in earlier conversations.</div><div>Anne</div><div><br></div><div>- - - - - - - - - - - - - - - - - - - - - - - - - - </div><div>For point 1), here are my resources:</div><div><br></div><div>; ** PLOT1 **</div><div>... res1 resources, filled contours, all good....</div><div><br></div><div> plot_a = gsn_csm_contour_map (wks, var_diff(0,:,:), res)<br></div><div><br></div><div><div> ; ** PLOT 2 ***</div><div> res2 = True ; res2 probability plots</div><div> res2@gsnDraw = False ; Do not draw plot<br></div><div> res2@gsnFrame = False ; Do not advance frame</div><div><br></div><div> res2@cnLevelSelectionMode = "ManualLevels" ; set manual contour levels</div><div> res2@cnMinLevelValF = 90 ; set min contour level</div><div> res2@cnMaxLevelValF = 100 ; set max contour level</div><div> res2@cnLevelSpacingF = 0.1 ; set contour spacing</div><div><br></div><div> res2@cnMonoFillPattern = True</div><div> res2@cnFillPattern = 17</div><div> res2@cnFillDotSizeF = 0.5<br></div><div><br></div><div> res2@cnInfoLabelOn = False ; turn off info label</div><div> res2@cnLinesOn = False ; do not draw contour lines<br></div><div> res2@cnLineLabelsOn = False ; do not draw contour labels</div><div> res2@gsnLeftString = ""</div><div> res2@gsnRightString = ""</div><div><br></div><div> res2@gsnMaximize = True ; enlarge plot</div><div> res2@gsnAddCyclic = True</div><div><br></div><div> plot_stat = gsn_csm_contour(wks, aveX, res2) ; aveX = 95% stat sign. </div><div> overlay (plot_a, plot_stat)<br></div><div><br></div><div> draw(plot_a)</div><div> frame(wks)</div></div><div><br></div></div></div></div></div>
<br>
<div><font style="font-family:Arial,Helvetica,sans-serif" size="2">Nota automatica aggiunta dal sistema di posta.</font></div><div><img src="https://www.unive.it/media/banner_150.jpg"></div>_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">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/mailman/listinfo/ncl-talk</a><br>
</blockquote></div>
</blockquote></div>
<br>
<div><font style="font-family:Arial,Helvetica,sans-serif" size="2">Nota automatica aggiunta dal sistema di posta.</font></div><div><img src="https://www.unive.it/media/banner_150.jpg"></div>_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">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/mailman/listinfo/ncl-talk</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail-m_2306050327819932053gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div><span><font color="#888888">Adam Phillips <br></font></span></div><span><font color="#888888">Associate Scientist, </font></span><span><font color="#888888">Climate and Global Dynamics Laboratory, NCAR<br></font></span></div></div><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli/" target="_blank">www.cgd.ucar.edu/staff/asphilli/</a> </font></span><span><font color="#888888">303-497-1726 </font></span></div><span><font color="#888888"></font></span><div><div><span><font color="#888888"><br></font></span><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli" target="_blank"></a></font></span></div></div></div></div></div></div></div></div></div></div></div>