<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Hey Adam,
<div class=""><br class="">
</div>
<div class="">Thanks for the tips and apologies for the late reply.</div>
<div class="">I’ve solved this by removing the labels altogether.</div>
<div class=""><br class="">
</div>
<div class="">Cheers,</div>
<div class="">/M<br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On 5 Apr 2018, at 18:40, Adam Phillips <<a href="mailto:asphilli@ucar.edu" class="">asphilli@ucar.edu</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">Hi Marston,
<div class="">Take a look at examples #3, 5, 6 and 7 on the contour labels examples page here:</div>
<div class=""><a href="http://www.ncl.ucar.edu/Applications/contourLab.shtml" class="">http://www.ncl.ucar.edu/Applications/contourLab.shtml</a><br class="">
</div>
<div class="">I've had success with the strategies shown in both #3 and #5. </div>
<div class="">Hope that helps!</div>
<div class="">Adam</div>
</div>
<div class="gmail_extra"><br class="">
<div class="gmail_quote">On Wed, Apr 4, 2018 at 9:42 AM, Marston Ward <span dir="ltr" class="">
<<a href="mailto:marston.johnston@gu.se" target="_blank" class="">marston.johnston@gu.se</a>></span> wrote:<br class="">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br class="">
<br class="">
I’m trying to get the contour labels to show up on each contour as well as control the size of the labels so that the labels do not cross many contours.<br class="">
But I’m not getting this to work with the following resource setup:<br class="">
<br class="">
 wksd  := gsn_open_wks ("png",oname)<br class="">
<br class="">
      info_string = "IWP: 0 to .4 by .1"<br class="">
      cnres                           = True<br class="">
      cnres@gsnDraw                   = False<br class="">
      cnres@gsnFrame                  = False<br class="">
      cnres@cnLinesOn                 = True<br class="">
      cnres@cnLineColor               = "DarkOrchid4"<br class="">
      cnres@cnFillOn                  = False<br class="">
      cnres@cnLineLabelsOn            = True<br class="">
      cnres@cnLineThicknessF          = 2.0<br class="">
      cnres@<wbr class="">cnLineLabelBackgroundColor= -1    ; transparent<br class="">
      cnres@<wbr class="">cnInfoLabelOrthogonalPosF = -0.25    ; Move into plot<br class="">
      ;cnres@cnLineLabelInterval       = 1<br class="">
      ;cnres@cnLineLabelFontHeightF    = 0.0001<br class="">
      cnres@cnInfoLabelString         = info_string<br class="">
      cnres@cnInfoLabelFontColor      = "DarkOrchid4"<br class="">
      cnres@cnInfoLabelPerimOn        = False<br class="">
      cnres@tfDoNDCOverlay            = True  ; Line up four axes of both plots.<br class="">
      cnres@cnLevelSelectionMode = "ManualLevels"     ; set manual contour levels<br class="">
      cnres@cnMinLevelValF       = 0.              ; set min contour level<br class="">
      cnres@cnMaxLevelValF       = .4              ; set max contour level<br class="">
      cnres@cnLevelSpacingF      = .1             ; set contour spacing<br class="">
<br class="">
      cnres@tiYAxisString        = “"<br class="">
      cnres@tiXAxisString        = “"<br class="">
<br class="">
I’m using the above resource to create overlays on contour plots that will be a panel plot, for example:<br class="">
<br class="">
plotd(0) = gsn_csm_contour_map_overlay(<wbr class="">wksd,p(0,:,:),iwp,resd,cnres)<br class="">
<br class="">
However, I cannot get the labels to change change to a smaller size or show up on ever contour, of which there are 5 possible, given the max, min, and spacing.<br class="">
<br class="">
Would love to get some help with this if anyone has an idea what part of the resource above is incorrect or missing additional information.<br class="">
<br class="">
Best,<br class="">
/Marston<br class="">
______________________________<wbr class="">_________________<br class="">
ncl-talk mailing list<br class="">
<a href="mailto:ncl-talk@ucar.edu" class="">ncl-talk@ucar.edu</a><br class="">
List instructions, subscriber options, unsubscribe:<br class="">
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank" class="">http://mailman.ucar.edu/<wbr class="">mailman/listinfo/ncl-talk</a><br class="">
</blockquote>
</div>
<br class="">
<br clear="all" class="">
<div class=""><br class="">
</div>
-- <br class="">
<div class="gmail_signature" data-smartmail="gmail_signature">
<div dir="ltr" class="">
<div class="">
<div dir="ltr" class="">
<div class="">
<div dir="ltr" class="">
<div class="">
<div dir="ltr" class="">
<div class="">
<div class="">
<div class=""><span class=""><font color="#888888" class="">Adam Phillips <br class="">
</font></span></div>
<span class=""><font color="#888888" class="">Associate Scientist,  </font></span><span class=""><font color="#888888" class="">Climate and Global Dynamics Laboratory, NCAR<br class="">
</font></span></div>
</div>
<div class=""><span class=""><font color="#888888" class=""><a href="http://www.cgd.ucar.edu/staff/asphilli/" target="_blank" class="">www.cgd.ucar.edu/staff/asphilli/</a>  
</font></span><span class=""><font color="#888888" class="">303-497-1726 </font></span></div>
<span class=""><font color="#888888" class=""></font></span>
<div class="">
<div class=""><span class=""><font color="#888888" class=""><br class="">
</font></span>
<div class=""><span class=""><font color="#888888" class=""><a href="http://www.cgd.ucar.edu/staff/asphilli" target="_blank" class=""></a></font></span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>