Re: How to remove the border of reference vector label with wmsetp?

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Tue May 03 2011 - 13:50:30 MDT

Xiaoming,

The picture you showed before looked like you had a Vector object, so that's why I recommended the res@vcRefAnnoPerimOn = False setting (and yes, I meant to include the "res@" as Dan pointed out).

I'm afraid there's no setting for turning off the label perimeter in the wmvlbl call.

--Mary

On May 2, 2011, at 1:04 PM, xiaoming Hu wrote:

> Hello Dan
> Thanks. But seems still doesn't work.
>
> "warning:vcRefAnnoPerimOn is not a valid resource"
>
> Those resources may work for gsn_csm_vector_scalar_map
>
> But in my case I used
> wmvect(wks, Time(::9), Time(::9)*0, u(::9), v(::9) )
> wmvlbl(wks, 0.63 ,0.59)
> to draw the attached figure. Those functions even don't accept any resources.
>
> Thanks
> Xiaoming
>
>
> > Date: Mon, 2 May 2011 12:43:20 -0600
> > From: dadriaan@ucar.edu
> > To: yuanfangcan@hotmail.com
> > CC: haley@ucar.edu; ncl-talk@ucar.edu
> > Subject: Re: How to remove the border of reference vector label with wmsetp?
> >
> > I think it is possible that Mary meant "vcRefAnnoPerimOn = False". Try
> > that one instead, and see if it works. Here is info on the resource:
> >
> > http://ncl/Document/Graphics/Resources/vc.shtml#vcRefAnnoPerimOn
> >
> > -Dan
> >
> > On 05/02/2011 07:31 AM, xiaoming Hu wrote:
> > > Hello Mary
> > >
> > > I added the resource you suggested. Seems my NCl doesn't recognize it.
> > > My version is 5.2.1
> > >
> > > It says "warning:vcRefPerimOn is not a valid resource"
> > >
> > > Here is part of my script
> > > "
> > > u =Data_to_plot*(- sin (WDR*pi/180))
> > > v =Data_to_plot*(- cos(WDR*pi/180))
> > > res1@xyLineThicknessF = 2
> > > res1@xyMarkLineModes =
> > > (/"Lines","Markers","Markers","Markers","Markers","Markers" /)
> > > res1@tmYLLabelsOn = False
> > > res1@vcRefPerimOn = False
> > > plot(ivar) = gsn_csm_xy (wks,Time,Time*0,res1) ; create plot
> > > res1@tmYLLabelsOn = True
> > > res1@xyLineThicknessF = 5
> > > res1@xyMarkLineModes =
> > > (/"Markers","Markers","Markers","Markers","Markers","Markers" /)
> > > wmsetp("vrs - reference vector size",12.9)
> > > wmsetp("vrn - NDC size of a reference vector size",0.09)
> > > wmsetp("vcc - vector color",1)
> > > wmsetp("vcw - vector linewidth scale factor",1.)
> > > wmsetp("vch - arrow head size",0.005)
> > > wmvect(wks, Time(::9), Time(::9)*0, u(::9), v(::9) )
> > > gsres = True ; Indicate you want to set some resources.
> > > gsres@gsMarkerColor = 3 ; Change marker color.
> > > gsres@gsMarkerSizeF = 20. ; Increase marker size by a factor of 20.
> > > wmvlbl(wks, 0.63 ,0.59)
> > > draw(plot(ivar))
> > >
> > > "
> > >
> > > ------------------------------------------------------------------------
> > > Subject: Re: How to remove the border of reference vector
> > > label with wmsetp?
> > > From: haley@ucar.edu
> > > Date: Mon, 2 May 2011 13:42:43 +1000
> > > CC: ncl-talk@ucar.edu
> > > To: yuanfangcan@hotmail.com
> > >
> > > Try
> > >
> > > res@vcRefPerimOn = False
> > >
> > > --Mary
> > >
> > > *
> > > *
> > > On May 1, 2011, at 11:46 PM, xiaoming Hu wrote:
> > >
> > > Hello
> > >
> > > How can I remove the border of vector label with wmsetp in the
> > > attached figure?
> > >
> > > I just found the parameters for vector label background (vlb) and
> > > vector label foreground (vlf). But I don't find a parameter for
> > > border of reference vector label.
> > >
> > > Thanks
> > >
> > > Xiaoming
> > > <1999Kwajalein_O3_Vector_combined_0.jpg>_______________________________________________
> > > 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
> <1999Kwajalein_O3_Vector_combined_0.jpg>_______________________________________________
> 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 May 3 13:50:43 2011

This archive was generated by hypermail 2.1.8 : Tue May 03 2011 - 14:47:34 MDT