<div dir="ltr">Hi Marston,<div>Take a look at examples #3, 5, 6 and 7 on the contour labels examples page here:</div><div><a href="http://www.ncl.ucar.edu/Applications/contourLab.shtml">http://www.ncl.ucar.edu/Applications/contourLab.shtml</a><br></div><div>I've had success with the strategies shown in both #3 and #5. </div><div>Hope that helps!</div><div>Adam</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 4, 2018 at 9:42 AM, Marston Ward <span dir="ltr"><<a href="mailto:marston.johnston@gu.se" target="_blank">marston.johnston@gu.se</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
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>
But I’m not getting this to work with the following resource setup:<br>
<br>
wksd := gsn_open_wks ("png",oname)<br>
<br>
info_string = "IWP: 0 to .4 by .1"<br>
cnres = True<br>
cnres@gsnDraw = False<br>
cnres@gsnFrame = False<br>
cnres@cnLinesOn = True<br>
cnres@cnLineColor = "DarkOrchid4"<br>
cnres@cnFillOn = False<br>
cnres@cnLineLabelsOn = True<br>
cnres@cnLineThicknessF = 2.0<br>
cnres@<wbr>cnLineLabelBackgroundColor= -1 ; transparent<br>
cnres@<wbr>cnInfoLabelOrthogonalPosF = -0.25 ; Move into plot<br>
;cnres@cnLineLabelInterval = 1<br>
;cnres@cnLineLabelFontHeightF = 0.0001<br>
cnres@cnInfoLabelString = info_string<br>
cnres@cnInfoLabelFontColor = "DarkOrchid4"<br>
cnres@cnInfoLabelPerimOn = False<br>
cnres@tfDoNDCOverlay = True ; Line up four axes of both plots.<br>
cnres@cnLevelSelectionMode = "ManualLevels" ; set manual contour levels<br>
cnres@cnMinLevelValF = 0. ; set min contour level<br>
cnres@cnMaxLevelValF = .4 ; set max contour level<br>
cnres@cnLevelSpacingF = .1 ; set contour spacing<br>
<br>
cnres@tiYAxisString = “"<br>
cnres@tiXAxisString = “"<br>
<br>
I’m using the above resource to create overlays on contour plots that will be a panel plot, for example:<br>
<br>
plotd(0) = gsn_csm_contour_map_overlay(<wbr>wksd,p(0,:,:),iwp,resd,cnres)<br>
<br>
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>
<br>
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>
<br>
Best,<br>
/Marston<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>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_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>
</div>