Hi everybody,
I have some issue about doing a panel of 10 plots(/5,2/). One of the plot does not appear and the others are small. I join the panel I got. This is the script I wrote:
plot = new(10,graphic)
date=(/1,2,3,4,5,6,7,8,9,10,11,12/)
wks = gsn_open_wks("x11","toto")
res = True
res@gsnMaximize = True
res@gsnDraw = False
res@gsnFrame = False
res@gsnXYBarChart = True
res@gsnXYBarChartBarWidth = 0.60
res@tiMainFontHeightF=0.020
res@tiXAxisString = "Months"
res@tiYAxisString = "Temperature biases(deg C)"
res@tiXAxisFontHeightF=0.020
res@tiYAxisFontHeightF=0.020
res@trXMinF = 0
res@trXMaxF = 13
res@trYMinF = -5
res@trYMaxF = 2
res@tmXBMode = "Explicit"
res@tmXBValues = date
res@tmXBLabels =(/"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"/)
res@tmXBLabelFontHeightF = 0.015
res@tmLabelAutoStride = True
res@gsnYRefLine = 0.
res@gsnXYBarChart = True
res@gsnAboveYRefLineColor = "red"
res@gsnBelowYRefLineColor = "blue"
res@tiMainString = "CCCma-CanESM2_SMHI-RCA4"
plot(1) = gsn_csm_xy (wks,date,tas1,res)
res@tiMainString = "CNRM-CERFACS-CNRM-CM5_SMHI-RCA4"
plot(2) = gsn_csm_xy (wks,date,tas2,res)
res@tiMainString = "ICHEC-EC-EARTH_DMI-HIRHAM5"
plot(3) = gsn_csm_xy (wks,date,tas3,res)
res@tiMainString = "ICHEC-EC-EARTH_SMHI-RCA4"
plot(4) = gsn_csm_xy (wks,date,tas4,res)
res@tiMainString = "MIROC-MIROC5_SMHI-RCA4"
plot(5) = gsn_csm_xy (wks,date,tas5,res)
res@tiMainString = "MOHC-HadGEM2-ES_SMHI-RCA4"
plot(6) = gsn_csm_xy (wks,date,tas6,res)
res@tiMainString = "MPI-ESM-LR_MPI-RCSM-REMO"
plot(7) = gsn_csm_xy (wks,date,tas7,res)
res@tiMainString = "MPI-M-MPI-ESM-LR_SMHI-RCA4"
plot(8) = gsn_csm_xy (wks,date,tas8,res)
res@tiMainString ="NCC-NorESM1-M_SMHI-RCA4"
plot(9) = gsn_csm_xy (wks,date,tas9,res)
res@tiMainString ="NOAA-GFDL-ESM2M_SMHI-RCA4"
plot(10) = gsn_csm_xy (wks,date,tas10,res)
panres = True
panres@gsnPanelXWhiteSpacePercent = 5
panres@gsnPanelYWhiteSpacePercent = 5
gsn_panel(wks,plot,(/5,2/),panres)
frame(wks)
end
Regards
Mamadou
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Jan 17 01:22:59 2014
This archive was generated by hypermail 2.1.8 : Sun Jan 19 2014 - 21:56:35 MST