<div dir="ltr">Hi Maria,<div>With regards to the tmYRLabelFontColor not working: I believe it actually is working as it is intended. You can only specify one color for the entire set of axis colors. As slate blue is the color you selected for the base plot labels, that is the color you will see for all the labels. (The other colored labels for each iteration is overwritten by the labels/colors chosen for the base plot.)</div><div><br></div><div>One way to solve this issue is to draw each item separately each time through the loop without overlaying. This would allow one to only turn on the one Y-axis label (with the right color) they want each time through the do loop. The negative to this approach is that you cannot maximize the plot on the frame using gsnMaximize or maximize_output. However, you can play with the vp* resources to get the plot to be as big within the frame as you&#39;d like.</div><div><br></div><div>With regards to your XRefLine query: I do not think it is possible to do what you were asking, as in limit the range of the X-axis reference line. However, it is quite possible to add these lines using gsn_polyline.</div><div><br></div><div>I have modified your script as noted above, and attached both the script and the output .png. Hopefully the modifications all make sense. </div><div>Adam</div><div><br></div><div class="gmail_extra"><div class="gmail_quote">On Mon, Mar 6, 2017 at 7:47 AM, Rugenstein  Maria <span dir="ltr">&lt;<a href="mailto:maria.rugenstein@env.ethz.ch" target="_blank">maria.rugenstein@env.ethz.ch</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
I’m trying to ascribe the same color to the bar and its label in a horizontal (floating) bar chart.<br>
<br>
colors = (/“red”,”blue”,”green”/)<br>
do i=0,nbars-1<br>
  res@gsnXYBarChartColors = colors(i)   &lt;=========== works<br>
  res@tmYRLabelFontColor = colors(i)            &lt;=========== doesn’t work<br>
  …<br>
  overlay(base_plot,max_plot(i))<br>
end do<br>
<br>
Further, I&#39;m wondering how to make use of the gsnXRefLine resource to indicate the average of each bar with a dot or a line. Is there any way to either shrink the gsnXRefLine down to the individual bar itself or have the whole RefLine transparent everywhere except black within its specific bar? Or do I have to parse all the different gsnXRefLines for each bar to individual polymarkers?<br>
<br>
Attached my script — it’s a close variation of your example bar_horz_13.ncl and produces the pdf plot, which is attached as well.<br>
<br>
Thanks for helping out!<br>
<span class="m_-1540423522786094882HOEnZb"><font color="#888888">Maria<br>
<br>
</font></span><br>______________________________<wbr>_________________<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/mailma<wbr>n/listinfo/ncl-talk</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="m_-1540423522786094882gmail_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/<wbr>asphilli/</a>   </font></span><span><font color="#888888"><a href="tel:(303)%20497-1726" value="+13034971726" target="_blank">303-497-1726</a> </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></div>