Yes, I have setted res@vcMonoLineArrowColor = False, and not missed the 'res@' part.
I have tested that the resource res@vcMonoLineArrowColor=False can not work for gsn_csm_vector_scalar_map_ce, but can work for gsn_csm_vector_map_ce. So I have cheanged to gsn_csm_vector_map_ce. Thanks.
2013-09-04
朱学明
发件人:Mary Haley <haley@ucar.edu>
发送时间:2013-09-04 23:12
主题:Re: [ncl-talk] How to set AnnoArrow a color
收件人:"朱学明"<557xiaozhu@163.com>
抄送:"ncl-talk@ucar.edu USERS"<ncl-talk@ucar.edu>
You need to set:
res@vcMonoLineArrowColor = False ;
Make sure you have the 'res@' part. Is that what you did?
If you continue to have problems, it would help if I could see your script, and even better if I can have your data too.
But, please try to debug this problem first before just sending it to me. The res@vcMonoLineArrowColor = False should work.
Another thing you can consider is not using gsn_csm_vector_scalar_map_ce. It may be easier to create a vector plot using gsn_csm_vector, a contour plot using gsn_csm_contour, a map using gsn_csm_map, and then overlay all three of them with the "overlay" procedure. It might look like this:
vcres = True
cnres = True
mpres = True
. . .
vcres@vcMonoLineArrowColor = False
. . . set other vector resources if desired . . .
. . . set contour resources if desired . . .
. . . set map resources if desired . . .
vector = gsn_csm_vector(wks,u,v,vcres)
contour = gsn_csm_contour(wks,x,cnres)
map = gsn_csm_map(wks,mpres)
overlay(map,contour)
overlay(map,vector)
draw(map)
frame(wks)
This would also work, depending on what order you want things to be drawn on the map:
overlay(map,vector)
overlay(map,contour)
draw(map)
frame(wks)
--Mary
On Sep 4, 2013, at 8:59 AM, 朱学明 wrote:
Hi Mary,
Thanks for your help.
I have checked the examples, I found that all of them use the function gsn_vector. But I am using the function gsn_csm_vector_scalar_map_ce, I also set
vcMonoLineArrowColor = False ;
But it is still not work. Do you think it is not work for the function gsn_csm_vector_scalar_map_ce?
2013-09-04
朱学明
发件人:Mary Haley <haley@ucar.edu>
发送时间:2013-09-04 22:29
主题:Re: Re: [ncl-talk] How to set AnnoArrow a color
收件人:"朱学明"<557xiaozhu@163.com>
抄送:
See the first example at:
http://www.ncl.ucar.edu/Applications/veceff.shtml
On Sep 3, 2013, at 1:16 PM, 朱学明 wrote:
> Hi Mary,
> Thanks for your responding. I have checked the example as you mentioned. But I did not found what I want. All the examples are just set the annotation arrow as black with default. But I would like its color can vary with the vaule of vcRefMagnitudeF's variation just as the arrows color in the vector field. I have setted the vcRefAnnoArrowUseVecColor = True and vcUseScalarArray= True , but the annotation arrow's color still is black. They look like not work.
> Can you show me how should I set? Thanks.
> 2013-09-04
> 朱学明
> 发件人:Mary Haley <haley@ucar.edu>
> 发送时间:2013-09-04 01:54
> 主题:Re: [ncl-talk] How to set AnnoArrow a color
> 收件人:"朱学明"<557xiaozhu@163.com>
> 抄送:"ncl-talk@ucar.edu USERS"<ncl-talk@ucar.edu>
>
>
> Go to the resource page for vectors:
>
> http://www.ncl.ucar.edu/Document/Graphics/Resources/vc.shtml
>
> and search for all resources starting with "vcRefAnno"
>
> You will see that the "vcRefAnnoAngleF" resource hasn't been implemented yet, but you can change the color using one of: vcRefAnnoArrowFillColor, vcRefAnnoArrowLineColor or vcRefAnnoArrowEdgeColor, depending on which type of vector you are drawing.
>
> To see some of these resources used in an example script, go to:
>
> http://www.ncl.ucar.edu/Applications/res_list.shtml
>
> and search for the resource of interest, and you should see a list of examples that it appears in.
>
> --Mary
>
> On Sep 3, 2013, at 9:40 AM, 朱学明 wrote:
>
> > Hi all,
> > I want to know how can I specify a color to the annotation arrow, just as it is in the vector field.
> > How can I change the angle of the arrow head? I just can change the length of arrow head by the resource vcLineArrowHeadMaxSizeF now. But I also want to change the angle.
> >
> > Thanks for your help.
> >
> > 2013-09-03
> > 朱学明
> > _______________________________________________
> > 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
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Sep 4 09:30:50 2013
This archive was generated by hypermail 2.1.8 : Wed Sep 04 2013 - 10:27:56 MDT