Dear all,
I have some questions for bar graphs.
In the program given at the end I want to do two things:
---remove the Y-axis, i.e. do not put the big values there since they
do not help.
---For the X-axis, the values go from 1 to 8.
But they are integral, i.e. I want "8" instead of "8.0".
Also, can I specify the frequency at which label are put?
Now it is every two values. I would like to be more frequent, like
1,2,3,4,5,6,7,8.
I did not find the answers on the web site.
Thanks for any help,
Mathieu
PS: here is the program.
-----
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 05:41:14 2010
This archive was generated by hypermail 2.1.8 : Mon Jul 19 2010 - 09:39:02 MDT