[ncl-talk] Fwd: sub: bar chart help

Rashed Mahmood rashidcomsis at gmail.com
Thu Dec 17 12:45:27 MST 2020


Hi Dale,
As Barry noted, the question is not quite clear, what do you mean by "this
does not work"? Did you try to play with those numbers in fspan* to adjust
for the size and position of bars?
Also for the legend to be appropriate you need to play with legend size
limits.

If it is still not clear, then sharing the data and a full (clean) script
would help.

Cheers,
Rashed

On Thu, Dec 17, 2020 at 11:52 AM dale zuri via ncl-talk <
ncl-talk at mailman.ucar.edu> wrote:

>
>
> ---------- Forwarded message ---------
> From: dale zuri <dalezuri at gmail.com>
> Date: Thu, Dec 17, 2020 at 12:42 AM
> Subject: sub: bar chart help
> To: Ncl-talk <ncl-talk at ucar.edu>
>
>
> 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
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at mailman.ucar.edu
> List instructions, subscriber options, unsubscribe:
> https://mailman.ucar.edu/mailman/listinfo/ncl-talk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20201217/894c5cdc/attachment.html>


More information about the ncl-talk mailing list