<div dir="ltr">Hi,<br><br>I am trying to plot 12 plots in one panel. Each column with 4 plots and three columns like that. Here is the code, I would be grateful if you could tell me where the error is. Thanking you in advance<br>
===========================================<br>; To plot decadal plots<br>; ===========================================<br>;<br>; Concepts illustrated:<br>; - Specifying how many plots to draw in each row<br>; - Left-justifying and centering paneled plots<br>
;<br>load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"<br>load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"<br><br>begin<br><br> ;=============================================<br>; data processing<br>
;=============================================<br> x=asciiread("~/Documents/PhD_June_2015/NCL_Moonsoon/Data_output/all_month_decade",(/13,12/), "float")<br> year_decadal=ispan(1880,2012,10)<br>;==============================================<br>
; create plot<br>;=============================================<br> <br><br> wks = gsn_open_wks ("ps", "panel" ) <br> plot = new ( 12 , graphic)<br><br><br> hres = True<br> hres@gsnDraw = False<br>
hres@gsnFrame = False<br><br> hres@tiMainString = "Decadal Mean"<br><br> hres@cnLevelSelectionMode = "ManualLevels" ; manual levels<br> hres@cnMinLevelValF = -10.<br>
hres@cnMaxLevelValF = 10.<br> hres@cnLevelSpacingF = 2. <br><br>;==============================================<br>; create panel<br>;=============================================<br> pres = True<br>
pres@gsnPanelRowSpec = True ; tell panel what order to plt<br> gsn_panel(wks,plot,(/4,4,4/),pres)<br><br> pres@gsnPanelCenter = False<br> gsn_panel(wks,plot,(/4,4,4/),pres)<br>end<br></div>