<div dir="ltr">Hi Laura,<div>I just looked at the resources I have set in the past to get numerous line labels on plots:</div><div><div>sres@cnLineLabelPlacementMode = "Constant" ;Default is randomized</div><div>sres@cnLineLabelFontHeightF = 0.02 ;Size of labels</div><div>sres@cnLineDashSegLenF = 0.35 ;Spacing between labels</div><div>sres@cnLineLabelInterval = 1 ;Label every line</div></div><div><br></div><div>Give those a shot and let ncl-talk know the result.</div><div>Adam</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 15, 2017 at 5:24 PM, Laura Fowler <span dir="ltr"><<a href="mailto:laura@ucar.edu" target="_blank">laura@ucar.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Adam:<br>
<br>
Thanks for sending me an e-mail earlier (to which I replied). As an<br>
experiment, I reverted to ncl choosing the levels instead of choosing<br>
the levels using "Explicit Levels". As expected, the new plot shows a<br>
bunch of contour lines, but without any labels. I also added the lines<br>
draw(plot) and frame(wks). That did not help either. So I am really<br>
baffled as why ncl refuses to add labels to my plot.<br>
<br>
Thanks,<br>
Laura<br>
<br>
<br>
<br>
<br>
On Fri, Dec 15, 2017 at 4:28 PM, Adam Phillips <<a href="mailto:asphilli@ucar.edu">asphilli@ucar.edu</a>> wrote:<br>
> Hi Laura,<br>
> I believe NCL will limit the drawing of line labels if it believes they will<br>
> come close to overlapping, although in this case I'm not sure why it doesn't<br>
> simply draw one for each line.<br>
> See example #5 here:<br>
> <a href="http://www.ncl.ucar.edu/Applications/contourLab.shtml#ex5" rel="noreferrer" target="_blank">http://www.ncl.ucar.edu/<wbr>Applications/contourLab.shtml#<wbr>ex5</a><br>
> and try setting cnLineLabelPlacementMode = "constant"<br>
> and see if that helps. Other examples show how to make sure labels are drawn<br>
> on every line (as opposed to the default behavior of skipping every other<br>
> one.), along with other modifications.<br>
> Adam<br>
><br>
> On Fri, Dec 15, 2017 at 4:16 PM, Laura Fowler <<a href="mailto:laura@ucar.edu">laura@ucar.edu</a>> wrote:<br>
>><br>
>> Hello:<br>
>><br>
>> I have been fussing for quite a while on how to draw labels on the<br>
>> contour line of the attached plot. The 3 contours show the resolution<br>
>> of my variable-resolution mesh. The red, blue, and black contours<br>
>> correspond to a resolution of 4.8 km, 9.6, and 14.4 km, respectively.<br>
>> I am not understanding why I am unable to add at least one label per<br>
>> contour?<br>
>><br>
>> sres = True<br>
>><br>
>> sres@gsnDraw = False<br>
>> sres@gsnFrame = False<br>
>> sres@gsnMaximize = False<br>
>> sres@cnFillMode = "AreaFill"<br>
>> sres@cnFillOn = False<br>
>> sres@cnLinesOn = True<br>
>> sres@cnLineLabelsOn = True<br>
>> sres@cnLineThicknessF = 3.4<br>
>> sres@cnInfoLabelOn = False<br>
>><br>
>> sres@cnLevelSelectionMode = "ExplicitLevels"<br>
>> sres@cnLevels = (/4.8,9.6,14.4/)<br>
>> sres@cnMonoLineColor = False<br>
>> sres@cnLineColors = (/"red","blue","black"/)<br>
>> sres@cnMonoLevelFlag = True<br>
>> sres@cnLevelFlag = "LineAndLabel"<br>
>><br>
>> There must be something I am missing, or I am getting confused between<br>
>> sres@cnLevelFlag and sres@cnLevelFlags, but I just can't make it work?<br>
>> I know that it may be a little finnicky to add labels at times, ....<br>
>> Would somebody be able to help me out so that I do not have to add<br>
>> those labels in PowerPoint. If interested, my entire ncl script is in<br>
>><br>
>> /glade2/scratch2/laura/MPAS.<wbr>PacificOcean/plots.<wbr>centeredPacificOceanMesh.15-<wbr>3km.20151129-20151231<br>
>> (see global_mean.precipitation.ncl)<wbr>.<br>
>><br>
>><br>
>> Many thanks,<br>
>> Laura<br>
>><br>
>><br>
>><br>
>><br>
>><br>
>> --<br>
>><br>
>> !-----------------------------<wbr>------------------------------<wbr>------------------------------<wbr>--------------------<br>
>> Laura D. Fowler<br>
>> Mesoscale and Microscale Meteorology Division (MMM)<br>
>> National Center for Atmospheric Research<br>
>> P.O. Box 3000, Boulder CO 80307-3000<br>
>><br>
>> e-mail: <a href="mailto:laura@ucar.edu">laura@ucar.edu</a><br>
>> phone: <a href="tel:303-497-1628" value="+13034971628">303-497-1628</a><br>
>><br>
>><br>
>> !-----------------------------<wbr>------------------------------<wbr>------------------------------<wbr>--------------------<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>
><br>
<span class="HOEnZb"><font color="#888888">><br>
> --<br>
> Adam Phillips<br>
> Associate Scientist, Climate and Global Dynamics Laboratory, NCAR<br>
> <a href="http://www.cgd.ucar.edu/staff/asphilli/" rel="noreferrer" target="_blank">www.cgd.ucar.edu/staff/<wbr>asphilli/</a> <a href="tel:303-497-1726" value="+13034971726">303-497-1726</a><br>
><br>
<br>
<br>
<br>
--<br>
!-----------------------------<wbr>------------------------------<wbr>------------------------------<wbr>--------------------<br>
Laura D. Fowler<br>
Mesoscale and Microscale Meteorology Division (MMM)<br>
National Center for Atmospheric Research<br>
P.O. Box 3000, Boulder CO 80307-3000<br>
<br>
e-mail: <a href="mailto:laura@ucar.edu">laura@ucar.edu</a><br>
phone: <a href="tel:303-497-1628" value="+13034971628">303-497-1628</a><br>
<br>
!-----------------------------<wbr>------------------------------<wbr>------------------------------<wbr>--------------------<br>
</font></span></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>