<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi Ty,<div>The wrf* plotting functions set a number of things automatically for you behind the scenes, which is convenient if you are happy with the style of the plot they return. If you'd like to change some things, it can get complicated. In this case, I think your label bar title is getting pushed off of the bottom of the plot. Looking at the coding of wrf_contour, it calls a function called set_lb_resources, and that function has the following lines:<br>file: $NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl<br></div><div><div><br></div><div>opts@lbTitleOn = get_res_value_keep(opts,"lbTitleOn", True)</div><div> opts@lbTitleString = get_res_value_keep(opts,"lbTitleString", lb_desc)</div><div> opts@lbTitleJust = get_res_value_keep(opts,"lbTitleJust", "BottomCenter")</div><div> opts@lbTitleOffsetF = get_res_value_keep(opts,"lbTitleOffsetF", -0.5)</div></div><div><br></div><div>get_res_value_keep will check to see if a resource is set, and if not, assigns the 3rd input as the resource value. It thus looks to me like lbTitleJust is getting set to BottomCenter, and lbTitleOffsetF is getting set to -0.5. I would try setting res@lbTitleJust = "TopCenter" in your script, and see if the title appears. (You can also set lbTitleOffsetF to a different value if you so desire.)</div><div><br></div><div>With regards to the labels, try setting this:</div><div>res@cnExplicitLabelBarLabelsOn = True</div><div>res@lbLabelStrings = (/"0.1","0.25","0.5","1","2","4","8","16","32","64","96"/)</div><div><br></div><div>A word of caution with doing this though: You are overwriting the label bar labels, and thus they are not connected to your cnLevels setting. So if you change cnLevels that will not be reflected in the lbLabelStrings resource automatically; you will need to alter lbLabelStrings as well.</div><div><br></div><div>Hope that helps. If you have further questions let ncl-talk know.</div><div>Adam</div><div><br></div></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Sun, Sep 2, 2018 at 12:45 PM Ty Buckingham <<a href="mailto:ty.buckingham@manchester.ac.uk" target="_blank">ty.buckingham@manchester.ac.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div style="direction:ltr;font-family:Tahoma;color:#000000;font-size:10pt">Hi all,
<div><br>
</div>
<div>I'm having a few (probably easily solvable) issues regarding the label bar resources. Even using the resource:</div>
<div><br>
</div>
<div>
<p style="margin-right:0px;margin-left:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)">
<span style="font-variant-ligatures:no-common-ligatures">res@lbTitleString = "Precipitation Rate (mm/h)"</span></p>
<p style="margin-right:0px;margin-left:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)">
<span style="font-variant-ligatures:no-common-ligatures"><br>
</span></p>
<p style="margin-right:0px;margin-left:0px;font-stretch:normal;line-height:normal;background-color:rgb(255,255,255)">
<span style="font-variant-ligatures:no-common-ligatures"><font size="2">No title is appearing on my label bar, and I'm not entirely sure why that is. </font></span></p>
<p style="margin-right:0px;margin-left:0px;font-stretch:normal;line-height:normal;background-color:rgb(255,255,255)">
<span style="font-variant-ligatures:no-common-ligatures"><font size="2"><br>
</font></span></p>
<p style="margin-right:0px;margin-left:0px;font-stretch:normal;line-height:normal;background-color:rgb(255,255,255)">
<span style="font-variant-ligatures:no-common-ligatures"><font size="2">Also, I've tried using a few instances of using '</font></span><font size="2">sprintf' in order to add the zeros onto my decimals. As you can see on the attached plots, label bar values
are printed as ".1" rather than "0.1". Is there any easy solution to this?</font></p>
<p style="margin-right:0px;margin-left:0px;font-stretch:normal;line-height:normal;background-color:rgb(255,255,255)">
<font size="2"><br>
</font></p>
<p style="margin-right:0px;margin-left:0px;font-stretch:normal;line-height:normal;background-color:rgb(255,255,255)">
<font size="2">I've attached my script.</font></p>
<p style="margin-right:0px;margin-left:0px;font-stretch:normal;line-height:normal;background-color:rgb(255,255,255)">
<font size="2"><br>
</font></p>
<p style="margin-right:0px;margin-left:0px;font-stretch:normal;line-height:normal;background-color:rgb(255,255,255)">
<font size="2">Thanks</font></p>
<p style="margin-right:0px;margin-left:0px;font-stretch:normal;line-height:normal;background-color:rgb(255,255,255)">
<font size="2">Ty</font></p>
</div>
<div>
<div><br>
</div>
</div>
</div>
</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="m_3149235622581032732m_-4381209003732286068gmail_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>