timainstring does not work

From: xiao zhang <littledddna_at_nyahnyahspammersnyahnyah>
Date: Thu Nov 12 2009 - 04:43:03 MST

hi, everyone, i am new to NCL and I wrote a script like below. However, the
mainstring of the overlay
plot is always on. What mistake do I have here? How can I turn it off?
                          Thank you very much
                                    Xiao

res=True
;res@gsnYAxisIrregular2Linear = True ; no log scale lable
res@cnLevelSelectionMode = "ExplicitLevels" ; use explicit levels
res@gsnDraw = False ; do not draw the plot
res@gsnFrame = False ; do not advance the frame
res@cnFillOn = True ;turn on the filled contour
res@gsnSpreadColors = True ;the colors used will be spread
across the whole color map.
res@gsnMaximize = True ;expanded to fill the biggest
possible space within a square
res@cnLineLabelsOn = False ;turn on the line lable
res@lbTitleOn = True ; turn on title
res@trYReverse = True ; reverse the Y-axis
res@lbLabelAngleF = 45 ; angle labels
res@tiMainString = "Vertical Temperature gradient (Degree/m)"
res@tiMainFontHeightF = 0.02
res@lbTitleOn = False ; Turn off the title of the labelbar
res@pmLabelBarHeightF=0.1 ;change the hight of the box of the
colorbar
res@lbLabelFontHeightF =0.012 ; change label size of the
colorbar
res@tmXBLabelFontHeightF = 0.016 ;change size of the axis tick
res@tmYBLabelFontHeightF = 0.013 ;change size of the axis tick
res@tiYAxisString = "Depth (m)"
res@tiXAxisString = "Lon (degree)"
res@tiXAxisFontHeightF=0.02 ;xy axis name size
res@tiYAxisFontHeightF=0.02

  sres = res
  sres@cnLevelSelectionMode = "ExplicitLevels" ; use explicit levels
  sres@cnFillOn = False ; do not color fill
  sres@cnLinesOn = True ; turn the contour lines on
  sres@cnLineLabelsOn = True ; turn the line labels on
  sres@tiMainOn=True
  sres@tiMainString = "" ; do not draw a main title
; delete(sres@cnLevels) ; needed as the size of the
cnLevels attribute is about to change (next line)
  sres@cnLevels = ispan(284,332,2) ; set a different set of
contour levels
  sres@cnInfoLabelOrthogonalPosF = 0.4 ; push the InfoLabel down
below the label bar

 plot = gsn_csm_contour(wks,dtdz(dep1|1:28,lat1|224,lon1|160:280),res)
 plot_ov = gsn_csm_contour(wks,oceant(dep|1:28,lat|224,lon|160:280),sres)

 overlay(plot,plot_ov) ; overlay the U-wind plot on
the temperature plot
 draw(plot) ; draw the temperature plot
(with the U-wind plot overlaid)
 frame(wks) ; advance the frame

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Nov 12 04:42:19 2009

This archive was generated by hypermail 2.1.8 : Sat Nov 14 2009 - 12:49:36 MST