problem with panel plot

From: <mamadoulamine.mbaye_at_nyahnyahspammersnyahnyah>
Date: Thu Jan 16 2014 - 14:48:01 MST

Dear NCL users,
I want to create a panel with 10 plots (/5,2/), But I have a problem to get what I want. I join the panel I got!
this is my script:

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 = True
   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)

   res@gsnPanelXWhiteSpacePercent = 5
   res@gsnPanelYWhiteSpacePercent = 5

   gsn_panel(wks,plot,(/5,2/),res)
    frame(wks)

Regards
Mamadou

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk

toto.png
Received on Thu Jan 16 14:49:11 2014

This archive was generated by hypermail 2.1.8 : Sun Jan 19 2014 - 21:56:35 MST