Re: Bar graph

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Mon Jul 12 2010 - 07:28:13 MDT

   res@tmYLLabelsOn = False ; turn off YL [Left] labels
   res@tmXBFormat = "f" ; X-Bottom

Please see the tick mark examples, in particular,
Examples 3 & 8
http://www.ncl.ucar.edu/Applications/tickmarks.shtml

Good luck

On 7/12/10 5:40 AM, Mathieu Dutour wrote:
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
>
> begin
> x = (/1,2,3,4,5,6,7,8/)
> y = (/2130,54448,300082,1264203,2716772,3231380,1981698,449287/)
> wks = gsn_open_wks("eps","barrigid3") ; open ps file
> res = True ; plot mods desired
> res@gsnFrame = False ; don't advance frame yet
> res@gsnXYBarChart = True ; turn on bar chart
> res@gsnXYBarChartBarWidth = 0.75 ; change bar widths
>
> res@tmXBMinorOn = True ;
> res@trYMinF = 0 ; bring bars down to zero
> res@trXMaxF = 9 ; of the 1st and last
> bars
> res@tiMainString = "Number of occuring cubes"
> plot = gsn_csm_xy (wks,x,y,res) ; create plot
> frame(wks)
> end
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Jul 12 07:28:20 2010

This archive was generated by hypermail 2.1.8 : Mon Jul 19 2010 - 09:39:02 MDT