<div dir="ltr">Will it error if I put int he XBar values as 1:5 and then assign those labels Nov, Dec, Jan, Feb, Mar? I want January to be in the 3rd position not the 1st.<div><br></div><div>Thanks for passing on that example. Going to look at it carefully and see if they did something different.</div><div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">-Zach Rieck<div><a href="mailto:zrr817@gmail.com" target="_blank">zrr817@gmail.com</a></div><div>(513)-502-5652</div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, May 31, 2019 at 11:18 AM Rick Brownrigg <<a href="mailto:brownrig@ucar.edu">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 Zach,</div><div><br></div><div>I've studied this, and I am not sure what is going on.  I speculate that since the xy plots are drawn independently, their x-axis are also independent, but the positioning of the bars is at the same spot *graphically* rather than in data-space. (make sense?)<br></div><div><br></div><div>Also, I'm confused by these settings:  tmXBValues = (/11,12,1,2,3/).</div><div>The docs for tmXBValues state the values should be monotonically increase/decreasing (?)</div><div><br></div><div>Here is an example that looks like what I think you might be going for; perhaps it will yield some insights:</div><div>    <a href="http://ncl.ucar.edu/Applications/Images/unique_5_lg.png" target="_blank">http://ncl.ucar.edu/Applications/Images/unique_5_lg.png</a></div><div><br></div><div>Hope that helps...</div><div>Rick<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, May 30, 2019 at 9:54 PM Zach Rieck <<a href="mailto:zrr817@gmail.com" target="_blank">zrr817@gmail.com</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">To Whom it May Concern-<div><br></div><div>I have a bar chart where I'm trying to compare monthly averages for 2 different data sets (5 months). I have set the resources for label bar to the right location and have the right font size, but I'm not sure why my data seems to be overlapping on top of itself. I have an offset set up where one plot is set to be at .675 of each plot point and the other is set at .925, which is more than the thickness of the bars.</div><div><br></div><div>I have attached the plot and code, and will list the resource section of my code below Thanks in advance for any help you can provide.</div><div>    wks2 = gsn_open_wks("pdf", "Trial_Lake_Monthly_Avgs")<br>    sres = True<br>    sres@gsnDraw = True<br>    sres@gsnFrame = False<br>    sres@gsnXYBarChart = True<br>    sres@gsnXYBarChartBarWidth = 0.15<br>    sres@tmXBMode          = "Explicit"<br>    sres@tmXBLabelFontHeightF = 0.0205<br>    sres@tmXTLabelFontHeightF = 0.0205<br>    sres@tmYLLabelFontHeightF = 0.0225<br>    sres@tiMainFontHeightF = 0.025<br>    sres@tiMainFont = "helvetica"<br>    sres@tiMainString = "Trial Lake 40.68 N 110.95W elev 9945 ft"<br>    sres@tmXBValues = (/11,12,1,2,3/)<br>    sres@tmXBLabels = (/"Nov","Dec","Jan","Feb","Mar"/)<br>    sres@gsnXYBarChartColors = (/"red"/)<br>    plot2 = gsn_csm_xy(wks2,fspan(.675,4.675,5),WRF_avgs,sres)<br>    sres@gsnXYBarChartColors = (/"blue"/)<br>    plot3 = gsn_csm_xy(wks2,fspan(.925,4.925,5),SN_avgs,sres)<br><br>    lbres                    = True          ; labelbar only resources<br>    lbres@vpWidthF           = 0.1           ; labelbar width<br>    lbres@vpHeightF          = 0.1           ; labelbar height<br>    lbres@lbBoxMajorExtentF  = 0.36          ; puts space between color boxes<br>    lbres@lbFillColors       = (/"red","blue"/)<br>    lbres@lbMonoFillPattern  = True          ; Solid fill pattern<br>    lbres@lbLabelFontHeightF = 0.015         ; font height. default is small<br>    lbres@lbLabelJust        = "CenterLeft"  ; left justify labels<br>    lbres@lbPerimOn          = False<br>    lbres@lgPerimColor   = "white"</div><div>    labels = (/"WRF","SNOTEL"/)<br>    gsn_labelbar_ndc(wks2,2,labels,0.52,0.1,lbres)<br><br>Respectfully,</div><div><br><div><div><div dir="ltr" class="gmail-m_7148548300336496108gmail-m_-6491176421401571624gmail_signature"><div dir="ltr">-Zach Rieck<div><a href="mailto:zrr817@gmail.com" target="_blank">zrr817@gmail.com</a></div><div>(513)-502-5652</div></div></div></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>
</blockquote></div>