begin arr = (/-2.22,-0.54,-1.4, -3.,-1.2,0.1/) ; Data for bars. minval = (/-2.6, -0.68, -2., -4.,-1.4/) maxval = (/-1.87,-0.4, -1.,-1.9,-1.0/) wks = gsn_open_wks("png","bar1e") ; Open "bar1e.png" png file. res = True ; Plot options desired. res@vpXF = 0.15 ; Move slightly to left res@vpWidthF = 0.8 ; Change aspect ratio of plot. res@vpHeightF = 0.44 res@trXMinF = 0 ; Set X and Y axes limits. res@trXMaxF = 7 res@trYMinF = -4.8 res@trYMaxF = 1 res@gsnXYBarChart = True res@gsnYRefLine = 0. ; Reference line, necessary ; for bar chart. res@gsnXYBarChartBarWidth = 0.5 ; Change bar widths res@tiYAxisString = "Radiative Forcing " + \ "(Watts per square meter)" res@tiYAxisFontHeightF = 0.015 res@tiYAxisOffsetXF = -.017 ; Move Y label towards plot. res@xyLineThicknessF = 3 ; 3x as thick. res@xyLineColors = (/"red","blue"/) ; Above/below colors plot = gsn_csm_xy(wks,ispan(1,6,1),arr,res) ; Create and draw an XY plot. end