<div dir="ltr"><div class="gmail_default" style="font-size:small">You are setting the labelbar title resources using "res", but "resP" is the name of the resources for gsn_panel. Change these "res" to "resP":</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><div class="gmail_default">resP@lbTitleString = "Percent" ; title string</div><div class="gmail_default">resP@lbTitlePosition = "Right" ; title position</div><div class="gmail_default">resP@lbTitleFontHeightF= .02 ; make title smaller</div><div class="gmail_default">resP@lbTitleDirection = "Across" ; title direction</div></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 31, 2016 at 2:10 PM, Anahita Amiri Farahani <span dir="ltr"><<a href="mailto:aamir003@ucr.edu" target="_blank">aamir003@ucr.edu</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 all,<div><br></div><div>I've tried to add a text to color bar but it does' work. I've attached the figure and here is the code:</div><div><br></div><div><div><br></div><div> wks = gsn_open_wks("eps","percent_<wbr>whole")</div><div> gsn_define_colormap(wks,"gui_<wbr>default")</div><div> plot = new(4,graphic) </div><div>;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<wbr>;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<wbr>;;;;;;;;;;;;</div><div> res = True ; plot mods desired</div><div> res@cnFillOn = True ; turn on color </div><div> res@gsnSpreadColors = True ; use full color map</div><div> res@cnLinesOn = False ; no contour lines</div><div> res@cnLineLabelsOn = False ; no line labels</div><div><br></div><div> res@mpMaxLatF = 47.5 ; specify the plot domain</div><div> res@mpMinLatF = 0.5 ; </div><div> res@mpMinLonF = -44.5 ;</div><div> res@mpMaxLonF = 14.5 </div><div><br></div><div> res@gsnAddCyclic = False </div><div> res@gsnDraw = False ; don't draw</div><div> res@gsnFrame = False ; don't advance frame</div><div> res@cnInfoLabelOn = False ; turn off cn info label</div><div> res@cnFillOn = True ; turn on color</div><div> res@gsnSpreadColors = True ; spread out color table</div><div> res@gsnSpreadColorStart = 2 ; color to startt</div><div><br></div><div> res@lbLabelBarOn = False ; turn off individual cb's</div><div><br></div><div>; res@cnLevelSelectionMode = "AutomaticLevels" ; AutomaticLevels</div><div><br></div><div><br></div><div> res@cnLevelSelectionMode = "ManualLevels" ; AutomaticLevels</div><div> res@cnMinLevelValF = 20 ; min level</div><div> res@cnMaxLevelValF = 80 ; max level</div><div> res@cnLevelSpacingF = 5 ; interval</div><div><br></div><div><br></div><div><br></div><div>;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<wbr>;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<wbr>;;;;;;;;;;;;</div><div><br></div><div>res@gsnLeftString = "Winter" ; change left string</div><div>plot(0) = gsn_csm_contour_map_ce(wks,<wbr>cldfrq_winter,res)</div><div>res@gsnLeftString = "Spring" ; change left string</div><div>plot(1) = gsn_csm_contour_map_ce(wks,<wbr>cldfrq_spring,res)</div><div>res@gsnLeftString = "Summer" ; change left string</div><div>plot(2) = gsn_csm_contour_map_ce(wks,<wbr>cldfrq_summer,res)</div><div>res@gsnLeftString = "Fall" ; change left string</div><div>plot(3) = gsn_csm_contour_map_ce(wks,<wbr>cldfrq_fall,res)</div><div><br></div><div><br></div><div>;*****************************<wbr>*******************</div><div>; create panel</div><div>;*****************************<wbr>*******************</div><div> resP = True ; modify the panel plot</div><div><br></div><div> resP@gsnPanelLabelBar = True ; add common colorbar</div><div> resP@gsnPanelFigureStrings = (/"a)","b)","c)","d)"/) ; add strings to panel</div><div> </div><div>res@lbTitleString = "Percent" ; title string</div><div>res@lbTitlePosition = "Right" ; title position</div><div>res@lbTitleFontHeightF= .02 ; make title smaller</div><div>res@lbTitleDirection = "Across" ; title direction</div><div>gsn_panel(wks,plot,(/2,2/),<wbr>resP) </div><div><br></div><div><br></div><div>delete(plot)</div><div>delete(res)</div><div>delete(resP)</div><div>delete(wks)</div></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div>Thank you,</div><div>Ana</div></div>
<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></blockquote></div><br></div>