[ncl-talk] sub: bar chart help

dale zuri dalezuri at gmail.com
Thu Dec 17 00:42:20 MST 2020


Hi NCL user,

I've been trying to modify this code to
https://www.ncl.ucar.edu/Applications/Scripts/unique_5.ncl get 6 bars. But
it didn't look good/work.

    sres at gsnXYBarChartColors = (/"magenta"/)

     plot1 = gsn_csm_xy(wks,fspan(.775,10.775,11),dimchnge(:,0),sres)
    ; draw each time series

     sres at gsnXYBarChartColors = (/"green"/)
    ; seperately, not

     plot2 = gsn_csm_xy(wks,fspan(0.925,10.925,11),dimchnge(:,1),sres)
    ; advancing the frame

     sres at gsnXYBarChartColors = (/"maroon"/)
    ; seperately, not

     plot3 = gsn_csm_xy(wks,fspan(1.075,11.075,11),dimchnge(:,2),sres)
    ; advancing the frame

     sres at gsnXYBarChartColors = (/"orange"/)
    ; seperately, not

     plot4 = gsn_csm_xy(wks,fspan(1.225,11.225,11),dimchnge(:,3),sres)
    ; advancing the frame

     sres at gsnXYBarChartColors = (/"violet"/)
    ; seperately, not

     plot5 = gsn_csm_xy(wks,fspan(1.375,12.375,11),dimchnge(:,4),sres)
    ; advancing the frame

     sres at gsnXYBarChartColors = (/"skyblue"/)
    ; seperately, not

     plot6 = gsn_csm_xy(wks,fspan(1.525,12.525,11),dimchnge(:,5),sres)


I would appreciate any help to fix this.


Thanks

Dale
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20201217/a8b69609/attachment.html>


More information about the ncl-talk mailing list