having trouble with bar charts

From: Dave Newman (newman AT XXXXXX)
Date: Mon Nov 18 2002 - 12:20:59 MST


Dear NCL-Talk --

I am having some trouble producing bar charts.

The example script at:
  http://www.cgd.ucar.edu/csm/support/CSM_Graphics/Scripts/bar_7.ncl
does not work for me.

Also, in the ncl script below, when I change the device from x11 to eps,
I get a core dump.
I also don't get any colors (msg says that gsnXYBarChartColors not a
valid resource)

Any help would be appreciated. Thanks!

---

begin res = True res@gsnFrame = False res@tiMainString = "dstmch90 (at Eureka, WA)" res@trYMinF = 0 res@trXMinF = 0 res@trXMaxF = 5 res@gsnXYBarChart = True res@gsnYRefLine = 0 res@gsnXYBarChartBarWidth = 0.75 res@gsnXYBarChartColors = (/"firebrick","red","orange","green"/) res@tmXBOn = False res@tiYAxisString = "DSTQ (Tg kg:S:-1:N:)" res@tiXAxisString = "bin diameter"

x = (/1,2,3,4/) y = (/75.1273, 216.304, 122.906, 13.4263/) labels = (/"0-1 :F33:m:F:m","1-2.5 :F33:m:F:m","2.5-5 :F33:m:F:m","5-10 :F33:m:F:m"/)

wks = gsn_open_wks("eps","DSTQ_bar") plot = gsn_csm_xy (wks,x,y,res)

txres = True txres@txFontHeightF = 0.015 do n = 1, 4 gsn_text(wks,plot,labels(n-1),n,0.5*y(n-1),txres) end do frame(wks)

end

_______________________________________________ ncl-talk mailing list ncl-talk AT ucar.edu http://mailman.ucar.edu/mailman/listinfo/ncl-talk



This archive was generated by hypermail 2b29 : Mon Nov 18 2002 - 13:33:06 MST