<div dir="ltr"><div><div>Hi Jian,<br></div>Looking back at the script that created that figure, I called gsn_panel twice to draw each column of figures. I then (through trial and error) overlaid the two labelbars on one another, and pushed the 2nd set of labelbar labels farther away from the labelbar(s). The key was setting the panel resource lists correctly, and of course using the same number of contours and the exact same colors for each labelbar. <br><br></div><div>Here's the relevant snippets from the code:<br>yres@gsnPanelLeft = 0.1<br>yres@gsnPanelRight = 0.5<br>yres@pmLabelBarParallelPosF = .24<br>gsn_panel(wks,map,(/3,1/),yres)<br><br>yres@gsnPanelLeft = 0.5<br>yres@gsnPanelRight = 0.9<br>yres@pmLabelBarParallelPosF = -.15 <br>yres@lbLabelOffsetF = 0.36<br>gsn_panel(wks,map2,(/3,1/),yres)<br><br></div><div>Notice I used lbLabelOffsetF to push the 2nd set of labels farther away from the labelbar.<br></div><div><br></div><div>Hope that helps!<br></div><div>Adam<br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 26, 2015 at 10:31 PM, Jian Zheng <span dir="ltr"><<a href="mailto:jzheng8606@gmail.com" target="_blank">jzheng8606@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi NCLers,<div><br></div><div>Does anyone know how to draw a colorbar with two groups of labels (represent two variables). I attach an example figure (from Deser and Phillips 2009). One method may be adding the labels one by one, but I don't know how to get the location for each label. Are there any other ways to draw a similar colorbar?</div><div><br></div><div>Thanks in advance.</div><span class="HOEnZb"><font color="#888888"><div>Jian</div></font></span></div>
<br>_______________________________________________<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/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="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>