Re: help: how to remove the labels on the left axis when using function "gsn_csm_pres_hgt_vector"?

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Tue, 28 Oct 2008 06:36:42 -0600

Hi Li,

I think you can do this by simply setting tiYAxisString to the empty
string:

    res_at_tiYAxisString = ""

--Mary

On Oct 28, 2008, at 3:37 AM, lxf wrote:

> Hi,
> I can not remove the labels on the left axis,that is "Level",
> using function "gsn_csm_pres_hgt_vector". I tried setting
> "res_at_tiYAxisOn = False ",
> but, it did not work.
> Howerver , "res_at_tiYAxisOn = False " can remove the "Level"
> in fuction gsn_csm_pres_hgt.
> Can anyone help me about this?
> I attached the test data and my scripts behind.
> ;----------
> 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/shea_util.ncl"
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
> begin
>
> fi = addfile("test.nc","r")
> uz = fi->uz(:,:,0)
> vz = fi->vz(:,:,0)
> wz = fi->wz(:,:,0)
> ;--------
> wks =gsn_open_wks("x11","test")
> gsn_define_colormap(wks,"BlWhRe")
> res = True
> res_at_gsnDraw = False
> res_at_gsnFrame = False
> res_at_gsnPaperOrientation = "portrait"
>
> res_at_cnFillOn = True ; turn on color for
> contours
> res_at_cnLinesOn = False ; turn off contour
> lines
> res_at_cnLineLabelsOn = False ; turn off contour
> line labels
> res_at_gsnSpreadColors = True ; use full color map
>
> res_at_tmXTOn = False
> ;res_at_tmYROn = False
>
> res_at_tiYAxisOn = False
> res_at_tiXAxisOn = False
>
> res_at_tmYRMode = "Automatic"
> res_at_lbLabelBarOn = False
> res_at_cnInfoLabelOn = False
> res_at_gsnSpreadColors = True
>
> res_at_vcGlyphStyle = "CurlyVector" ; turn on
> curley vectors
> res_at_vcVectorDrawOrder = "PostDraw" ; draw vectors
> last
>
> minmax=(/ min( uz) , max(uz) /)
> symMinMaxPlt(minmax,10,False,res)
> plot= gsn_csm_pres_hgt_vector(wks,uz,vz,wz*(100.),res)
> ;plot= gsn_csm_pres_hgt(wks,uz,res)
>
> getvalues plot_at_contour
> "pmAnnoManagers" : am_ids
> end getvalues
>
> index = ind(NhlName(am_ids).eq."right_axis")
> if(.not.ismissing(index)) then
> NhlRemoveAnnotation(plot_at_contour,am_ids(index))
> end if
>
> draw(plot)
> frame(wks)
> end
>
> Best whishes,
> Li
> 2008-10-28
>
>
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> ==============<test.nc>_______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Oct 28 2008 - 06:36:42 MDT

This archive was generated by hypermail 2.2.0 : Tue Oct 28 2008 - 09:54:43 MDT