<div dir="ltr">Hi all,<div><br></div><div>For my plots, I used this scripts to create multiple panels with common label bar, this time i have panels those label bars are different, how can I add label bar individually under each panel? </div><div><br></div><div><br></div><div><br></div><div><br></div><div><div>wks = gsn_open_wks("eps","Low_clouds_ann")</div><div>;gsn_define_colormap(wks,"BlAqGrYeOrRe")</div><div>gsn_define_colormap(wks,"BlWhRe")</div><div> plot = new(4,graphic)   </div><div>;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;</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><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       =  20.               ; max level</div><div>  res@cnLevelSpacingF      =  2                ; interval</div><div><br></div><div><br></div><div>;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;</div><div><br></div><div>res@gsnLeftString       = "CAM4 F_compset"         ; change left string</div><div>plot(0) = gsn_csm_contour_map_ce(wks,low_ann_cam4_F,res)</div><div>res@gsnLeftString       = "CAM4 E_compset"         ; change left string</div><div>plot(1) = gsn_csm_contour_map_ce(wks,low_ann_cam4_E,res)</div><div>res@gsnLeftString       = "CAM5"         ; change left string</div><div>plot(2) = gsn_csm_contour_map_ce(wks,low_ann_cam5,res)</div><div>res@gsnLeftString       = "GFDL"         ; change left string</div><div>plot(3) = gsn_csm_contour_map_ce(wks,low_ann_gfdl,res)</div><div><br></div><div><br></div><div>; ========================= PLOT 2 ==============================</div><div> res2 = True                            ; res2 probability plots</div><div><br></div><div><br></div><div>  res2@gsnDraw              = False           ; Do not draw plot</div><div>  res2@gsnFrame             = False           ; Do not advance frame</div><div> </div><div>  res2@cnInfoLabelOn       = False       ; turn off info label</div><div><br></div><div>  res2@cnLinesOn           = False       ; do not draw contour lines</div><div>  res2@cnLineLabelsOn      = False       ; do not draw contour labels</div><div><br></div><div>  res2@cnFillScaleF        = 0.6         ; add extra density</div><div>;  delete(alpha@long_name)</div><div>;  delete(alpha@units)  </div><div>  res2@gsnAddCyclic = False</div><div><br></div><div>plot2   = gsn_csm_contour(wks,alphat_low_ann_cam4_F, res2) </div><div>plot2   = ShadeGtContour(plot2, 0.05, 17)  ; shade all areas less than the</div><div>                                             ; 0.05 contour level</div><div>plot3   = gsn_csm_contour(wks,alphat_low_ann_cam4_E, res2) </div><div>plot3   = ShadeGtContour(plot3, 0.05, 17)</div><div><br></div><div>plot4   = gsn_csm_contour(wks,alphat_low_ann_cam5, res2) </div><div>plot4   = ShadeGtContour(plot4, 0.05, 17)</div><div><br></div><div>plot5   = gsn_csm_contour(wks,alphat_low_ann_gfdl, res2) </div><div>plot5   = ShadeGtContour(plot5, 0.05, 17)</div><div><br></div><div><br></div><div><br></div><div>overlay (plot(0), plot2)</div><div>overlay (plot(1), plot3)</div><div>overlay (plot(2), plot4)</div><div>overlay (plot(3), plot5)</div><div><br></div><div><br></div><div><br></div><div>;************************************************</div><div>; create panel</div><div>;************************************************</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>resP@txString         = "Low clolud changes"     </div><div>resP@lbTitleString    = "%"                ; title string</div><div>resP@lbTitlePosition  = "Right"              ; title position</div><div>resP@lbTitleFontHeightF= .02                ; make title smaller</div><div>resP@lbTitleDirection = "Across"             ; title direction</div><div>gsn_panel(wks,plot,(/2,2/),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>