Hi,
I am trying to plot a XY anomaly plot. I am getting the plots perfectly
but if I put these two resources:
res@gsnAboveYRefLineColor = "red"
res@gsnBelowYRefLineColor = "blue"
I am getting error message saying:
fatal:Dimension sizes on right hand side of assignment do not match
dimension sizes of left hand side
fatal:Execute: Error occurred at or near line 101 in file
$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl
fatal:Execute: Error occurred at or near line 4481 in file
$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl
fatal:Execute: Error occurred at or near line 248 in file ts_CAI_x3.ncl
Here is the part of my code with resources and the plotting:
;************************************************
; plotting parameters
;************************************************
nVar = 6
plot = new ( nVar, "graphic")
wks = gsn_open_wks ("x11","cai_ano")
gsn_define_colormap(wks,"BlAqGrYeOrReVi200")
res = True ; plot mods
desired
res@xyDashPattern = 0 ; Make curves all solid
res@xyMarkLineMode = "Lines" ; Markers *and* lines
res@xyLineColors = (/"black","red"/) ; 3 different colors
res@gsnDraw = False
res@gsnFrame = False
res@gsnYRefLine = (/ 0 /)
res@gsnAboveYRefLineColor = "red" ; above ref line fill
red
res@gsnBelowYRefLineColor = "blue" ; below ref line fill
blue
;*************************************************
; Panel the plots
;*************************************************
resP = True
resP@txString = ""
resP@gsnPanelFigureStrings =
(/"NA","NP","EUA","NAM","ARM","ARO"/)
plot(0) = gsn_csm_xy (wks,year,cai_na,res) ; create plot
plot(1) = gsn_csm_xy (wks,year,cai_np,res) ; create plot
plot(2) = gsn_csm_xy (wks,year,cai_eua,res) ; create plot
plot(3) = gsn_csm_xy (wks,year,cai_nam,res) ; create plot
plot(4) = gsn_csm_xy (wks,year,cai_arm,res) ; create plot
plot(5) = gsn_csm_xy (wks,year,cai_aro,res) ; create plot
resP@gsnMaximize = True
gsn_panel(wks,plot,(/3,2/),resP)
Can anybody please tell me what is going wrong if I put those two
resources in my code?
Thanks,
Soumik
-- "Numbing the pain for a while will make it worse when you finally feel it. ~J.K. Rowling" ***************************************** Soumik Basu Graduate Student, Research Assistant International Arctic Research Center University of Alaska Fairbanks Fairbanks,Alaska,USA ***************************************** _______________________________________________ ncl-talk mailing list List instructions, subscriber options, unsubscribe: http://mailman.ucar.edu/mailman/listinfo/ncl-talkReceived on Wed Oct 31 11:56:56 2012
This archive was generated by hypermail 2.1.8 : Tue Nov 06 2012 - 15:05:49 MST