Drawing Order of Grid Lines

From: Lunde, Bruce N CIV NAVOCEANO, NP1 <bruce.lunde_at_nyahnyahspammersnyahnyah>
Date: Thu Aug 11 2011 - 15:32:00 MDT

Hello, I am drawing a histogram with grid lines turned on.
I wish the grid lines to be drawn underneath the boxes.
I have tried
  res@tfPolyDrawOrder = "PostDraw"
but that does not seem to work.

Are there options such as
  tmGridDrawOrder = "PreDraw"
  tmMajorGridDrawOrder = "PreDraw"
  tmXMajorGridDrawOrder = "PreDraw"
  etc. ??

Thanks, Bruce

Here is my basic code modifying one of your examples:

; histo_1.ncl
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
begin
  x = new(1000,integer)
  do i=0,dimsizes(x)-1
    x(i) = rand()
  end do
  x = x/320
  pfmt = "eps"
  pfmt = "x11"
  wks = gsn_open_wks(pfmt,"zhisto")
  res = True
  res@tmXMajorGrid = True
  res@tmXMajorGridLineDashPattern = 2
  res@tmYMajorGrid = True
  res@tmYMajorGridLineDashPattern = 2

  res@tfPolyDrawOrder = "PostDraw" ;.. NOT SEEM TO HELP

  res@gsnPaperOrientation = "landscape"

  gsn_define_colormap(wks,"temp1")
  plot=gsn_histogram(wks,x,res)
end
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Aug 11 15:32:58 2011

This archive was generated by hypermail 2.1.8 : Fri Aug 12 2011 - 11:48:30 MDT