<div dir="ltr"><div class="gmail_default" style="font-size:small">You are setting the labelbar title resources using &quot;res&quot;, but &quot;resP&quot; is the name of the resources for gsn_panel. Change these &quot;res&quot; to &quot;resP&quot;:</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    = &quot;Percent&quot;                ; title string</div><div class="gmail_default">resP@lbTitlePosition  = &quot;Right&quot;              ; title position</div><div class="gmail_default">resP@lbTitleFontHeightF= .02                ; make title smaller</div><div class="gmail_default">resP@lbTitleDirection = &quot;Across&quot;             ; 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">&lt;<a href="mailto:aamir003@ucr.edu" target="_blank">aamir003@ucr.edu</a>&gt;</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&#39;ve tried to add a text to color bar but it does&#39; work. I&#39;ve attached the figure and here is the code:</div><div><br></div><div><div><br></div><div> wks = gsn_open_wks(&quot;eps&quot;,&quot;percent_<wbr>whole&quot;)</div><div> gsn_define_colormap(wks,&quot;gui_<wbr>default&quot;)</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&#39;t draw</div><div>  res@gsnFrame            = False           ; don&#39;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&#39;s</div><div><br></div><div>;  res@cnLevelSelectionMode =  &quot;AutomaticLevels&quot;   ; AutomaticLevels</div><div><br></div><div><br></div><div>  res@cnLevelSelectionMode =  &quot;ManualLevels&quot;   ; 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       = &quot;Winter&quot;         ; change left string</div><div>plot(0) = gsn_csm_contour_map_ce(wks,<wbr>cldfrq_winter,res)</div><div>res@gsnLeftString       = &quot;Spring&quot;         ; change left string</div><div>plot(1) = gsn_csm_contour_map_ce(wks,<wbr>cldfrq_spring,res)</div><div>res@gsnLeftString       = &quot;Summer&quot;         ; change left string</div><div>plot(2) = gsn_csm_contour_map_ce(wks,<wbr>cldfrq_summer,res)</div><div>res@gsnLeftString       = &quot;Fall&quot;         ; 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 = (/&quot;a)&quot;,&quot;b)&quot;,&quot;c)&quot;,&quot;d)&quot;/)      ; add strings to panel</div><div>     </div><div>res@lbTitleString    = &quot;Percent&quot;                ; title string</div><div>res@lbTitlePosition  = &quot;Right&quot;              ; title position</div><div>res@lbTitleFontHeightF= .02                ; make title smaller</div><div>res@lbTitleDirection = &quot;Across&quot;             ; 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>