Re: problem with panel plot

From: Karin Meier-Fleischer <meier-fleischer_at_nyahnyahspammersnyahnyah>
Date: Fri Jan 17 2014 - 04:17:02 MST

Dear Mamadou,

you start with the wrong index: the index of plot is going from 0 to 9.

You should comment the panres@gsnPanelXWhiteSpacePercent and panres@gsnPanelYWhiteSpacePercent out.
NCLs default value is only 1% and you have increase the value to 5% which results more white space between
the plots.

Regards,
Karin

Am 17.01.2014 um 09:24 schrieb mamadoulamine.mbaye@ucad.edu.sn:

>
>
> 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
> <toto.000001.png>_______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_________________________________
Karin Meier-Fleischer
Deutsches Klimarechenzentrum GmbH
Application Support
Visualization
Bundesstrasse 45a
D-20146 Hamburg, Germany

E-Mail: meier-fleischer@dkrz.de
Internet: http://www.dkrz.de/
Phone: +49 40 460094 126
Fax: +49 40 460094 270

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Jan 17 04:17:24 2014

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