If you have permission, in the function pie_chart, change
npts = round( pcPie(n), 3)
to
npts = max( (/round( pcPie(n), 3), 1/) )
On 7/19/10 8:24 PM, Kevin Talgo wrote:
> ************************************************************************************************
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl"
>
> pcRes = True
> pcRes@gsnMaximize = True
>
> srcgroups = asciiread("srcgroups.txt",-1,"string")
>
> percent = (/ 0.111173, 3.05663, 5.30778, 3.19337, 7.87491, 4.52484,
> 0.0118351, 75.9194 /)
>
> color = (/ "red", "green", "orange", "yellow" \
> , "brown","magenta","blue","gray" /)
>
> wks = gsn_open_wks("ps","pie_chart")
>
> plot = pie_chart(wks, percent, srcgroups, color, pcRes)
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Jul 19 20:59:34 2010
This archive was generated by hypermail 2.1.8 : Wed Jul 28 2010 - 10:42:06 MDT