Re: length of vector reference

From: Jian Zheng <jzheng8606_at_nyahnyahspammersnyahnyah>
Date: Fri Sep 20 2013 - 17:46:14 MDT

Hi Adam,

I have already used vpXF/vpYF/vpWidthF/vpHeightF, sorry for the misleading.

I attach my figure. The length of vector reference in the right panel is
shorter than that in the left one. I hope to set them same.

here are the vector resource
  vecres = True ; vector only resources
  vecres@gsnDraw = False ; don't draw
  vecres@gsnFrame = False ; don't advance frame
  vecres@gsnAddCyclic = False ;the data does not cover the whole globe

; vecres@vcGlyphStyle = "CurlyVector" ; curly vectors
  vecres@vcRefMagnitudeF =4 ; define vector ref mag
  vecres@vcRefLengthF = 0.035 ; define length of vec ref,
same for the two panels
  vecres@gsnRightString = " " ; turn off right string
  vecres@gsnLeftString = " " ; turn off left string
  vecres@tiXAxisString = " " ; turn off axis label
  vecres@vcRefAnnoOrthogonalPosF = -0.3 ; move ref vector into plot
  vecres@vcRefAnnoString2On = "False"
  vecres@vcMinDistanceF = 0.02
---------------

Thanks all the same.
Jian

On Fri, Sep 20, 2013 at 4:14 PM, Adam Phillips <asphilli@ucar.edu> wrote:

> Hi Jian,
> Yes, gsn_panel resizes the plots and as you have two different sized plots
> the reference vectors will likely get resized to different values. I am not
> sure of an automatic way to do what you want; a developer will have to
> chime in on whether an automatic way exists.
>
> But, one way to do it would be to bypass using gsn_panel and to use the
> vpXF/vpYF/vpWidthF/vpHeightF resources to manually draw your two panels on
> the page. See example #9 here:
> http://www.ncl.ucar.edu/Applications/panel.shtml#ex9
>
> Hope that helps. If not, please respond back to the ncl-talk email list..
> Adam
>
>
> On 09/19/2013 03:07 PM, Jian Zheng wrote:
>
> Hi,
>
> I make a two-panel plot with different size. The length of vector
> reference are different in the two panels, although I have set the
> vcRefLengthF same (0.035). Using getvalues, I find the vcRefLengthF of the
> two plots are 0.0249521 and 0.0338861, respectively. Does the real length
> of vector reference equal vcRefLengthF*panel size? How to set the real
> length same for every panel regardless of the panel size?
>
> Thanks,
> Jian
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
> --
> ______________________________________________________________
> Adam Phillips asphilli@ucar.edu
> NCAR/Climate and Global Dynamics Division (303) 497-1726
> P.O. Box 3000
> Boulder, CO 80307-3000 http://www.cgd.ucar.edu/cas/asphilli
>
>

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk

SLPhad_grad.TAUX_oras3_MERRA_time.lon40-290_8yrlp.png
Received on Sun Sep 22 12:56:35 2013

This archive was generated by hypermail 2.1.8 : Tue Oct 01 2013 - 14:41:43 MDT