NCL,
I am wondering whethere there is a function that works similar like
res@gsnAboveYRefLineColor or res@gsnBelowYRefLineColor but for gsnXRefLine?
I would like to shade my histogram with gray for the value lower than zero:
e.g.
[SNIP]
res = True
res@gsnDraw = False
res@gsnFrame = False
res@xyLineThicknesses = 2.0
res@xyLineColors = "blue"
res@xyMonoDashPattern = False ; all solid
res@tiYAxisString = "PDF (%) "
res@tiXAxisString = "PC "
res@gsnXYBarChart = True ; Create bar plot
;res@gsnXYBarChartOutlineOnly = True
res@trXMinF = -5.0 ; min value on y-axis
res@trXMaxF = 7.0
res@trYMinF = 0.0 ; min value on y-axis
res@trYMaxF = 10.0
res@vpHeightF= 0.3 ; change aspect ratio of plot
res@vpWidthF = 0.90
res@tmXBMode = "Explicit"
res@tmXBValues = (/-5,-4,-3,-2,-1,0,1,2,3,4,5,6,7/)
res@tmXBLabels = (/-5,-4,-3,-2,-1,0,1,2,3,4,5,6,7/)
res@tmXMajorGrid = True
res@tmXMajorGridThicknessF = 1.0 ; 2.0 is default
res@tmXMajorGridLineDashPattern = 2 ; select short dash lines
res@tmYMajorGrid = True ; implement y grid
res@tmYMajorGridThicknessF = 1.0 ; 2.0 is default
res@tmYMajorGridLineDashPattern = 2 ; select short dash lines
res@vpXF = 0.07 ; position and size
res@vpYF = 0.45
res@tiMainFontHeightF = 0.018
res@tmXBLabelFontHeightF = 0.014
res@tmYLLabelFontHeightF = 0.014
* res@gsnXRefLine = 0.0 *
* res@gsnXRefLineThicknessF = 3.0*
* res@gsnRightXRefLineColor = "red" ; above ref line fill red*
* res@gsnLeftXRefLineColor = "blue"*
plotD = gsn_csm_xy (wks, xx, yy, res)
--- Thanks Erika
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Sat Feb 22 03:09:12 2014
This archive was generated by hypermail 2.1.8 : Mon Mar 03 2014 - 14:26:18 MST